Ensure Single Instance of Application

MaggieMay77

New member
Joined
Jan 14, 2004
Messages
1
Hi All - it is official... Im bald after ripping all my hair out!

I need to ensure that there is only one instance of my application is running. So in my sub main I detect if there are any Processes of my app running - and if there isnt then the user is presented with the login screen - this works just dandy.

But the thing is if there is an instance (which I can determine WOOO HOOO)... the app is shown in the taskbar as minimized and I dont know how to restore it to its Normal window state. I have a sneeking suspicion that API programming will be required.

(Im coding in VS VB.Net)

Thanks in advance
Maggie
 
Back
Top