Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to control the program to execute once again??
Message
De
06/02/2002 03:09:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00615843
Message ID:
00615894
Vues:
33
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform