ybt
asked on
C# parent child form
I have a dialog form opened from main form and I need a textbox text in a main form to be changed after changing a text in a dialog form
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Changed in real-time when the child form is changed?...or only AFTER the child form is closed? For the latter, you'd typically set the DialogResult of the child form to indicate success/failure. Then, in the parent form, you'd check the result returned by ShowDialog() and access a Public Property of the child form that exposes the value to be retrieved. This way the child form doesn't need any knowledge of the parent form...everything is done from the parent side.
ASKER
To Mike Tomlinson, but what to for "Changed in real-time when the child form is changed?"?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you