>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.