X
Xarky
Hi,
I have the main form, where from one of the methods, an instance
of another form is created. On the second form I have to fill some
data and be submitted by a button click. The data to be entered is to
be returned to the main form.
A sample of code of my problem.
// main Windows Form
private void EnterDataBtn_Click(object sender, System.EventArgs e)
{
SubForm x = new SubForm();
x.Show();
// here I need to get data that is filled on the sub form
// by doing "string = x.getData();", data entered is not being
// returned. Mainly because it not has been yet submitted
from
// other form.
// I need some sort of event or what?????
}
Please can someone help me out.
Thanks in Advance.
I have the main form, where from one of the methods, an instance
of another form is created. On the second form I have to fill some
data and be submitted by a button click. The data to be entered is to
be returned to the main form.
A sample of code of my problem.
// main Windows Form
private void EnterDataBtn_Click(object sender, System.EventArgs e)
{
SubForm x = new SubForm();
x.Show();
// here I need to get data that is filled on the sub form
// by doing "string = x.getData();", data entered is not being
// returned. Mainly because it not has been yet submitted
from
// other form.
// I need some sort of event or what?????
}
Please can someone help me out.
Thanks in Advance.