Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting an existing instance of VFP app running
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Detecting an existing instance of VFP app running
Miscellaneous
Thread ID:
00005151
Message ID:
00005151
Views:
83
Somebody posted on Foxpro-L (a few months ago) a WinAPI method that does the following within a VFP app:
- When a VFP app loads, checks to see if an instance of VFP is already running the same app.
- If not, goes ahead and runs like the usual app is supposed to.
- If not, gives focus to (and if minimized, restores) the existing instance, then exits.

Can somebody repost that snippet, please? Seems like a great way to keep meathead users -- those who repeatedly forget that their app is already running -- from constantly re-instancing the application.

Thanks very much!
Next
Reply
Map
View

Click here to load this message in the networking platform