By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,214 Members | 2,099 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,214 IT Pros & Developers. It's quick & easy.

Stopping multiple instances of program from running

100+
P: 133
I would like to know some code to check if my program is running, if so then not load.

Thanks in advanced,
Gobble.
Jan 31 '08 #1
Share this Question
Share on Google+
5 Replies


debasisdas
Expert 5K+
P: 8,127
This topic has already been discussed here in the forum several times before . Please use the search box for related discussions.
Jan 31 '08 #2

100+
P: 133
Sorry but i cant i cant find anything in this forum for stopping it happen in VB6.

Gobble.
Jan 31 '08 #3

lotus18
100+
P: 866
Sorry but i cant i cant find anything in this forum for stopping it happen in VB6.

Gobble.
Hi

You can use

Expand|Select|Wrap|Line Numbers
  1. If App.PrevInstance=True Then
  2.      Msgbox "System is running"
  3. End If
Rey Sean
Jan 31 '08 #4

100+
P: 133
Hi

You can use

Expand|Select|Wrap|Line Numbers
  1. If App.PrevInstance=True Then
  2.      Msgbox "System is running"
  3. End If
Rey Sean
Thankyou kind sir :)
Gobble.
Feb 1 '08 #5

lotus18
100+
P: 866
Thankyou kind sir :)
Gobble.
You're welcome .
Feb 1 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.