Composite Control - How to Expose a Child Control

D

dsmolen

I am building a composite control that contains (among other things) a
Label control. In order to allow users to set the Text, Font and other
properties of the Label, I would like to expose the Label control as a
high-level property of my composite control. I have been able to make
the Label visible in the Properties window of my composite control, but
I have been unable to get everything working no matter how I tweak
PersistenceMode, DesignerSerializationVisibility, CreateChildControls,
etc.

Could someone please post a working example of exposing a Label from
within a composite control?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top