Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Preferences - Last Form
Message
De
15/12/2009 16:39:06
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
15/12/2009 16:15:45
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01439211
Message ID:
01439253
Vues:
39
>>>I am thinking of saving/retrieving the last form instantiated in a WinForms application.
>>>Saving/retrieving the registry value should be easy, but how would I use the FormMgr.Show() to display that form value retrieved?
>>>
>>>I am guessing this would be easy, but I am stumped.
>>>
>>>Thanks, Ted
>>
>>The form Manager is just a collection so you should be able to find the last value on the collection.
>>Tim
>
>Tim,
>
>Thanks, I can save the name of the last form saved.
>But I am guessing I need to use reflection, with the retrieved form name string, for FormMgr.Show().

Yes, I would guess so but that wouldn't be too hard. :-)
There are methods in the Form Manager that return form objects such as:
GetLastInstantiatedForm
GetActiveForm
GetActiveBusinessForm

Maybe some of those would be helpful also.

Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform