Solved

Open one instance only of exe file

Posted on 2003-11-09
3
458 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now