如何在propertygrid [隐藏属性]中删除属性

问题描述

我想删除propertygrid中的一个属性(例如游标属性和其他...) 怎么样?

enter image description here

解决方法

Browsable attribute应用于您的媒体资源,并将其设置为False,例如

Imports System.ComponentModel

Public Class Thing
    Inherits Component

    Public Property VisibleProperty As String

    <Browsable(False)>
    Public Property HiddenProperty As String

End Class