|
-
Oct 18th, 2002, 04:04 AM
#1
Thread Starter
Member
Need some tips with making custom controls
Can anyone tell me how to set what to run in design time and what to run at run time? just like a command back in VB 6 usercontrol.usermode? I can't seem to figure out where it belongs to now
And if i don't want a certain properties to be exposed in my control? how do i do it? For example, i don't want the width and height property to be exposed to the user, how do i do it? I've tried overriding it but it doesn't allow overriding of these two properties.
Thanks in advance for the help
-
Mar 4th, 2003, 11:41 AM
#2
Hyperactive Member
Hi
1) To test you controls you'll need to add another project to your solution, and set that as the start project, add you control to it and every time you build you control will update
2) Properties are even easier, make you own height and width properties in your subclass and set the properties to private, that way they will only be visible to the class, and reference the main height and width with them
Hope this helps
Danny
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|