Originally Posted by dotnetDeveloper
Thanks for your help. I want to expose the text property of a label control. Someone told me that only custom user controls can expose there properties to the designer. I will give what you reccomended a try. Thanks for your help.
Doug / dotNet,
I think what dND means above is a custom server
control. It is easy to confuse user controls with custom server controls if you are not aware there's a BIG difference.
A user control exposes its properties declaratively, and also makes them available in the Properties pane. However, if you need to expose properties to the designer, make them available from the toolbox, etc... like a regular ASP.NET web server control, you do need to make a custom server control.
Custom server controls are a very advanced topic. Whole books are written on how to compose them. Wrox has a pretty good one on the subject.
You should be able to find a simple example in VB
on the MSDN. However, unless you are creating a web control library to reuse in many projects, or as part of a package you want to resell or something, then it's probably not worth the effort.