|
-
June 20th, 2002, 08:42 AM
#1
another easy question, load a new form...
I created another form, how can I load, unload and comunicate betweent the forms,
THANKS!
Last edited by dky1e; June 21st, 2002 at 01:00 PM.
-
June 22nd, 2002, 09:36 PM
#2
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());
}
Juan Carlos Urbina
Staff Software Engineer
-
June 26th, 2002, 04:21 AM
#3
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
-
June 26th, 2002, 12:08 PM
#4
delegates? sounds interesting, could you post some links?(examples, info, etc...)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|