You want to create custom properties for your control, which the user can set using the Properties window of the Visual Studio IDE. What attribute can you use to control the visibility of the properties in the Properties window in the Visual Studio IDE?
-
DebuggerBrowsable
-
ComVisible
-
Browsable
-
DisplayBrowsable
C
Correct answer
Explanation
The BrowsableAttribute controls whether a property appears in the Properties window at design time. Setting [Browsable(true)] makes it visible, while [Browsable(false)] hides it. DebuggerBrowsable is for debugger display, ComVisible relates to COM interoperability, and DisplayBrowsable is not a standard .NET attribute.