I Can
I Can

Reputation: 3

How to remove an property in propertygrid[hide property]

I want to remove an property in propertygrid (like cursor property and other ...) How? enter image description here

Upvotes: 0

Views: 115

Answers (1)

jmcilhinney
jmcilhinney

Reputation: 54417

Apply the Browsable attribute to your property and set it to False, e.g.

Imports System.ComponentModel

Public Class Thing
    Inherits Component

    Public Property VisibleProperty As String

    <Browsable(False)>
    Public Property HiddenProperty As String

End Class

Upvotes: 1

Related Questions