Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to open last form in MDI application start
Message
De
15/04/2007 14:16:16
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
How to open last form in MDI application start
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01216062
Message ID:
01216062
Vues:
74
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform