Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to control the program to execute once again??
Message
From
06/02/2002 03:09:34
 
 
To
05/02/2002 21:26:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00615843
Message ID:
00615894
Views:
30
>Hello,All
>
> I don't Like my program to execute more than one in the same time? I tried to use Findwindow API. But the FindWindow can't find the Window handle before the first window be not showed.
> Can anyone help me to solve it?

Look at my ClsEvent class, available for download from the Files Section - it can be used to manage single-instance anything by associating a named Windows event with the object. The code includes a sample for creating a single-instance program, but the idea can easily be adapted to other concepts such as a form or control.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform