Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell when a project is running & winform
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00725484
Message ID:
00725836
Views:
7
Roland,

To determine if a form is already running, you will need to manually determine that. Create a collection class (like a Form Manager) to manage all your forms that are instantiated. When you create a new form, then add it to the collection. In the Closing event of the form, remove the form from the collection. You can then iterate through the collection to see if a particular form is already instantiated.

>Hi,
>
>What is the coding to determine if a compiled (Built project) is already running so that the user cannot have more than one copy running.
>
>
>Also what would the coding be to determine if a winform is already running that that the user cannot open two windows of the same form?
>
>
>Thanks
>Roland
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform