Results 1 to 2 of 2

Thread: Need some tips with making custom controls

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Posts
    57

    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

  2. #2
    Hyperactive Member
    Join Date
    Feb 2003
    Posts
    263
    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
  •  



Click Here to Expand Forum to Full Width