Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Preferences - Last Form
Message
From
15/12/2009 16:39:06
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
15/12/2009 16:15:45
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01439211
Message ID:
01439253
Views:
38
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform