Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One Instance
Message
De
23/11/2004 07:12:37
 
 
À
23/11/2004 00:43:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00957965
Message ID:
00963779
Vues:
14
Hi Mathew.

Take the MessageBox out of your main program and move it to the IsAppRunning Function like to:
IF lnHWND > 0
  *** We have found something!
  MESSAGEBOX( "Only one instance of this application can be run at a time.", 64, lcTitle )

  *** So make it uppermost and maximize it (ShowWin => 3)
  BringWindowToTop( lnHWND )
  ShowWindow( lnHWND, 3 )
  *** Set the Return Value
  llRetVal = .T.
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform