Multiple choice technology programming languages

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?

  1. DebuggerBrowsable

  2. ComVisible

  3. Browsable

  4. DisplayBrowsable

Reveal answer Fill a bubble to check yourself
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.