Launching Application/Program Once
-
-
May I know how to restrict user by launching the application only once? When the application has been launched and not closed yet, some notification or feedback to user when he/she attempt to launch the application again. Please help. thanx in advance.
In VB6 you can add something simple like this to your load event:
If App.PrevInstance = True Then MsgBox "Detected previous instance. Exiting." End End If
Roger Stewart "I Owe, I Owe, it's off to work I go..." -
In VB6 you can add something simple like this to your load event:
If App.PrevInstance = True Then MsgBox "Detected previous instance. Exiting." End End If
Roger Stewart "I Owe, I Owe, it's off to work I go..." -
Look at http://msdn.microsoft.com/library/en-us/dnwinforms/html/reaworapps1.asp[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer