In article <uN**************@TK2MSFTNGP03.phx.gbl>,
fr********@gmail.com
says...
Hi, I make a a program with two Form, I call Form2 as showdialog()
I Would like receive data when Form2 is closed, how make that?. How return
data when the form is closing or closed?.
The form may be closed (i.e. not visible), but the object still remains
in memory. Just create some public properties on Form2 with your return
information and you can access them in the calling form:
Form2 form = new Form2();
if (form.ShowDialog() == DialogResult.OK)
{
if (form.ReturnData = "itworks")
...
}
--
Patrick Steele
http://weblogs.asp.net/psteele