Solved

Restric single instance of application

Posted on 1998-08-03
3
133 Views
Last Modified: 2010-05-03
how can I restrict the user to have only one unstance of application running on his desk top. I am using VB 5.0
0
Comment
Question by:monalisa
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
anthonyc earned 10 total points
ID: 1467584
make SUB MAIN  your startup-procedure then

if app.previnstance then
  msgbox "I'm running already"
  end
end if
0
 

Author Comment

by:monalisa
ID: 1467585
thank you
0
 

Author Comment

by:monalisa
ID: 1467586
thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 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

23 Experts available now in Live!

Get 1:1 Help Now