Click to See Complete Forum and Search --> : another easy question, load a new form...


dky1e
June 20th, 2002, 08:42 AM
I created another form, how can I load, unload and comunicate betweent the forms,

THANKS!

jcurbina
June 22nd, 2002, 09:36 PM
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());
}

V. Lorenzo
June 26th, 2002, 04:21 AM
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

dky1e
June 26th, 2002, 12:08 PM
delegates? sounds interesting, could you post some links?(examples, info, etc...)