CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Usercontrol

  1. #1
    Guest

    Usercontrol

    When I create a Usercontrol I want to display only those properties which I create using propbag.Is it possible .If so how to do that.
    How do I add Font property to my usercontrol using propbag.


  2. #2
    Guest

    Re: Usercontrol

    You can't choose what properties you display, and even if you could, why would you? Don't enter any information into one, and then they won't do anything...
    What type of usercontrol do you want to add the FONT property to? Anything that needs one has one...if you want to change the font of a text, just go to the properties window and click on font. Same is true for command buttons and labels...


  3. #3

    Re: Usercontrol

    You can add the font property to a user control by defining the Let parameter and the get return value as StdFont. See http://www.freevbcode.com/ShowCode.Asp?ID=636 for an example of a user control that does this.


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

Featured