<br>
How do I insure that my application will run only once on a desktop?<br>
<br>
I tried the API FindWindow in Sub Main upon the startup of the application thinking that if I get a non-zero then the application is already running. The problem is that as soon as the application starts, the FindWindow API returns the handle to the application itself (the current new instance)!<br>
<br>
Any ideas?<br>
<br>
Tarek
How do I insure that my application will run only once on a desktop?<br>
<br>
I tried the API FindWindow in Sub Main upon the startup of the application thinking that if I get a non-zero then the application is already running. The problem is that as soon as the application starts, the FindWindow API returns the handle to the application itself (the current new instance)!<br>
<br>
Any ideas?<br>
<br>
Tarek