Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to open last form in MDI application start
Message
From
15/04/2007 14:16:16
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
How to open last form in MDI application start
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01216062
Message ID:
01216062
Views:
76
I have C# WinForms MDI application.
MDI child forms are created by menustrip click event handler

AppDesktop.FormMgr.Show(new ChildForm1("param1", "param2") );

Every MDI child form "childform1" may have separate class with different name and different number of parameters.
When application in opened, last MDI child form must be opened automatically.
I think I must store last opened form name to isolated storage and call

AppDesktop.FormMgr.Show(new LastOpenedForm(lastParam1, lastParam2) );
Reflection should probably used to make this call.

Any sample code or idea to implement this ?
Andrus
Next
Reply
Map
View

Click here to load this message in the networking platform