User Control Attribute.

  • Thread starter Thread starter John H.
  • Start date Start date
J

John H.

Hi,

How I can to design one User Control, which contains other controls like
Label and TextBox, in order to it to return, in to the form that contains
this, all changed properties, from the user control, but also and from the
included controls?

Thanks.
 
John,

If I understand you correctly, I think that you want to expose the
controls that your control has. You can do this by changing the access
modifier to public, which will make it appear in the Properties Grid (it
should).

However, this might cause a number of issues, as exposing the controls
allows full access to the control, and your container control has to account
for that.

Hope this helps.
 

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

Back
Top