Computing.Net > Forums > Programming > running just one instance of applic

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

running just one instance of applic

Reply to Message Icon

Name: secrets
Date: February 6, 2005 at 10:41:03 Pacific
OS: Windows
CPU/Ram: 2.4/256
Comment:

i have developed an application in visual basic6 now i want the application to run only single means now from exe i can run as many applications as i want i want to prevent this how can i do this...?



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: February 6, 2005 at 11:55:35 Pacific
Reply:

You put code right at the beginning of the application to check for a previous instance.

If App.PrevInstance then End.

About the only time it is acceptable to use End to terminate as VB application - before any forms are loaded.

Stuart


0

Response Number 2
Name: secrets
Date: February 8, 2005 at 10:17:06 Pacific
Reply:

right! now how can i check that is the user has admin rights......or not so that i can proceed furter...???


0

Response Number 3
Name: StuartS
Date: February 8, 2005 at 10:52:34 Pacific
Reply:

For that you are going to have to use the API. There are no functions in VB to for that.

You are going to have to do some research yourself to work out how to do that.

Stuart


0

Response Number 4
Name: secrets
Date: February 16, 2005 at 12:41:16 Pacific
Reply:

thanks pal i have found one on www.codeproject.com
its really cool.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: running just one instance of applic

dlls missing www.computing.net/answers/programming/dlls-missing/4875.html

search all drives for 'instances of www.computing.net/answers/programming/search-all-drives-for-instances-of/16458.html

Where can I learn to program????? www.computing.net/answers/programming/where-can-i-learn-to-program/14348.html