to use ur own logic to switch them on/off (create/dispose)
1.change ur main method like
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Form f1=new Form();
f1.Show();
Form f2=new Form();
f2.Show();
Application.Run();
}
2. maintain a collection of forms in ur root class.
3. Event handler to coordinate how to create/dispose form in ur root class
4. Create Delegate use signature of event handler in step 3.
5. use event in ur form to hoopup with event handler in step 3 acting like notifier. u can use interface as a helper if u want.
If u r familiar with concepts like Delegate/Event and observer pattern, u know what i'm talking about.
if u r still not sure the implementation, let me know,i help u do a mock up. Thx~~~
相逢是缘--yes, u can maintain multiple form....
所有跟帖:
•
纯洁友谊。老大,如果有MdiMainWindow to manager those multiple forms 怎样?
-ololol-
♀
(0 bytes)
()
10/22/2009 postreply
18:51:58
•
life would be easier, then, by using mdi
-HappyNow?!-
♂
(96 bytes)
()
10/23/2009 postreply
05:48:39