Occurs every time the Property Grid refreshes its item list in the End-User Designer.
public static event EventHandler<FilterComponentPropertiesEventArgs> FilterComponentProperties
Public Shared Event FilterComponentProperties As EventHandler(Of FilterComponentPropertiesEventArgs)
The FilterComponentProperties event handler receives an argument of the FilterComponentPropertiesEventArgs type. The following properties provide information specific to this event.
|Component||Gets a component for which an event has occurred.|
|Properties||Provides access to properties of the current component.|
Handle the FilterComponentProperties event to hide some of the properties of either a particular control, or a group of controls in the End-User Designer. When hiding a particular property, it disappears both from the Property Grid and this control smart tag.
Because this is a static event, you will need to write an event handler common to all End-User Designer forms used in your application. The best way of handling a static event is to handle it only once in a static constructor of a class, or in the application's entry point static procedure (e.g., Main).
See the following documents for code samples: