Link to home
Start Free TrialLog in
Avatar of johnyu1997
johnyu1997

asked on

pass data with dialog result

How to pass data back from child form to main form using showdialog and dialog result.  I just know how to pass from main to child but not the other way around.  Please help!
Main Form:
 
Dim Frm as new form2
If frm.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
<perform some task>
end if
frm = nothing
 
Child Form:
 
Me.DialogResult = System.Windows.Forms.DialogResult.OK

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
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