|
-
Feb 9th, 2000, 01:55 PM
#1
Thread Starter
Lively Member
how do i know the program has been running when the user click on the short cut to run it again? and how can i show a form from the program after i know that it is already running and is hiding?
-
Feb 9th, 2000, 03:46 PM
#2
If you want to check for previous instance of the application is running try using the following code example in the Load event of your startup form or in the Main sub.
Private Sub Form_Load()
If App.PrevInstance Then
MsgBox "App already running", vbExclamation, "Bye bye!"
End 'can't use the Unload statement in the Load event
End If
End Sub
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
-
Feb 10th, 2000, 10:12 AM
#3
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|