Search Tools Links Login

Previous App Detection


This easy code took me about 20 seconds to write, this detects on the Form_Load() Event if another Instance of the exe is already running, if it is it displays an error dialog, else it just runs the program, this is basicly for newbies, please vote for me, Happy Coding...

Original Author: Dan Wold

API Declarations

(None)

Code

If App.PrevInstance = True Then
MsgBox "There Is Already Another Instance Of This Application Running, Please Close It And Try Again.", vbExclamation, "Error"
End
End If

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 70 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.