I created another form, how can I load, unload and comunicate betweent the forms,
THANKS!
Printable View
I created another form, how can I load, unload and comunicate betweent the forms,
THANKS!
If you are familiar with Visual C++/MFC programming then follow the same process to load/unload a form and to communicate
among them.
// C# Example to display a string from a Text control in form2
private void LoadSecondForm()
{
CForm2 form2 = new CForm2();
form2.ShowDialog();
MessageBox.Show(form2.MyText1.ToStr());
}
Hi:
You could try using the standard windows messaging mechanism (sendmessage y postmessage functions), but for .NET there's another yet powerfull way of doping that: Use Delegates.
VictorL
delegates? sounds interesting, could you post some links?(examples, info, etc...)