Link to home
Start Free TrialLog in
Avatar of ybt
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
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of ybt
ybt

ASKER

To Mike Tomlinson, but what to for "Changed in real-time when the child form is changed?"?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ybt

ASKER

Thank you