Results 1 to 2 of 2

Thread: User Control / Property Groups?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    User Control / Property Groups?

    I noticed in the Property Grid that controls can be seperated into groups using a form of tree list. I have countless properties in my usercontrol and figured it would be nice to seperate them a little bit.

  2. #2
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: User Control / Property Groups?

    import System.ComponentModel at the top of the class then do this:

    VB Code:
    1. <Category("NameOfCategory"), Description("A description of the property here.")> _
    2.     Public Property MyProperty() As String
    3.         Get
    4.             Return _MyProperty
    5.         End Get
    6.         Set(ByVal value As String)
    7.             _MyProperty = value
    8.         End Set
    9.     End Property
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

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