Results 1 to 3 of 3

Thread: disable property in property grid contorl

  1. #1

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409

    disable property in property grid contorl

    how can you make a property in the property Grid control become disabled at run time. I know that at desing time you can just say something like this in the class you want the grid to display:
    VB Code:
    1. <CategoryAttribute("Catagory"), [ReadOnly](True), DescriptionAttribute("Description")> _
    2.     Public Property TestProperty() As Integer
    3.         Get
    4.  
    5.         End Get
    6.         Set(ByVal Value As Integer)
    7.  
    8.         End Set
    9.     End Property

    but how can i change the Property Atributes at run time?

  2. #2

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409

    bump

    bump

  3. #3

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    Big Bump

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