Solved

Open one instance only of exe file

Posted on 2003-11-09
3
460 Views
Last Modified: 2010-05-01
How would one make a VB6 exe open only one instance?

   - Marc
0
Comment
Question by:MarcGraff
3 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 250 total points
ID: 9712104
if app.PrevInstance = true then
  msgbox "application already open"
end if
0
 
LVL 1

Assisted Solution

by:JonothanTompson
JonothanTompson earned 50 total points
ID: 9712109
Private Sub Form_Load()
If App.PrevInstance = True Then
    End
End If
End Sub


Jonothan
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9712126
Thank you!

   - Marc
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS Access Search and Replace Using VBA 6 71
Run code from text file in vb 1 64
Visual Studio search word table and return Cell index 8 61
Automatic Email Reminder 4 37
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question