Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running only one instance of an application
Message
De
27/05/1998 11:15:01
 
 
À
23/05/1998 09:56:05
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00101181
Message ID:
00102378
Vues:
32
Thank you for your help. It's much appreciated.

Jason

>>Could someone please explain to me the process of restricting the user to running only one instance of an application. By this I mean that once an application is running if they minimize the app. and then try to start another instance of the app. the same minimized app. will maximum. Thus, only one instance of the app. will always be running.
>>
>>Thanks
>
>This was here already, few months ago:
>
>Set Reso Off
>Resource_lc=Set("Reso",1)
>ItsOK_ll=.t.
>on error ItsOK_ll=.f.
>use (resource_lc) again
>use
>if not(ItsOK_ll)
> =messagebox("This app is already in use, please Alt+Tab to find it")
> Quit
>endif
>Set Reso on
>
>You may use the API to automatically find the app and activate it, so the user doesn't have to "Alt+Tab to find it" - see George's approach for that.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform