PDA

Click to See Complete Forum and Search --> : Need some tips with making custom controls


Cestlavie
Oct 18th, 2002, 04:04 AM
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 :)

dannywooly
Mar 4th, 2003, 10:41 AM
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