Hiding a custom webcontrol's property from the Properties window

A quick note, if you have property in a custom webcontrol that you don't want to show up in the Properties window, decorate it with the Browsable() attribute. Ex.

[Browsable(false)]
public
string Name

        {

            get

            {

                return name;

            }

            set

            {

                name = value;

            }

        }

Published Monday, July 16, 2007 3:44 AM by wessamzeidan

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

What do you think?

(required) 
required 
optional
required