Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Forms User Control

Status
Not open for further replies.

codemech

Programmer
Feb 8, 2004
34
0
0
US
I have a composite user control on a windows form. How can this control get a value from a field on the parent form?
 
Your control should not know anything about the form it is on. The form should tell your control what's on it, or the control should fire an event telling the parent form to do something.

Example: when you click a button, does your button know about your form? No, you capture the ButtonClick event and your form does the work.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top