Prevent App from be launched more than once
-
Hi there, I know there must be a way from preventing an Application to be launched more than once, but how? Any help will be appreciated. I'm coding in VB.Net 2003. Thanks, Werries
A programmer's life is good... or is it?? Ek dink nie so nie!
hi,this works in vb2005. hope also in VB2003 go to Properties of Project & click on application tab now click on checkBox related to "Make single instance application" hope this helps
Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India)
-
hi,this works in vb2005. hope also in VB2003 go to Properties of Project & click on application tab now click on checkBox related to "Make single instance application" hope this helps
Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India)
Thanks for your reply, but unfortunately VB.NET 2003 and VB.NET 2005 differ from each another in that area. I did find a nice sample of code to validate an instance of an application at http://www.vbforums.com/showthread.php?t=398309 Have a nice day. Regards, Werries
A programmer's life is good... or is it?? Ek dink nie so nie!
-
Hi there, I know there must be a way from preventing an Application to be launched more than once, but how? Any help will be appreciated. I'm coding in VB.Net 2003. Thanks, Werries
A programmer's life is good... or is it?? Ek dink nie so nie!
-
Hi there, I know there must be a way from preventing an Application to be launched more than once, but how? Any help will be appreciated. I'm coding in VB.Net 2003. Thanks, Werries
A programmer's life is good... or is it?? Ek dink nie so nie!
Did you try creating a mutex? As far as I know, that is the general solution to such problem, and can be used in any language, since is supported by the OS through APIs. If CreateMutex() returns ERROR_ALREADY_EXISTS means there's an already running instance of your application. Regards,
Bornish ESRI Developer Network Compilers demystified - Function pointers in Visual Basic 6.0 Enables the use of function pointers in VB6 and shows how to embed native code in a VB application.