Examining Control Attributes
When you are creating custom controls, you want to be sure that your controls behave well and don't interfere with the proper behavior of the Visual Studio .NET IDE. Remember, it is your code running in the Form Designer when users are using your custom controls.
If you have public properties that raise an exception, for instance, when invalid data is assigned, you may want to prevent consumers from modifying a property of a control at design time. A couple of attributes control the accessibility of a property in the Properties window. The EditorBrowsableAttribute determines whether a property or method is visible in a designer. For example, Intellisense uses the EditorBrowsableAttribute to determine which members ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access