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

application should be opened only once...

P: 27
hi all,
i have design a small project in vb 6 and I have made its EXE also.Now what i want is once i have started my exe than if i try to open it again than it shouldnt get opened i.e. only one instance is allowed to run at a time.

Thanx...
Mar 15 '07 #1
Share this Question
Share on Google+
2 Replies


vijaydiwakar
100+
P: 579
hi all,
i have design a small project in vb 6 and I have made its EXE also.Now what i want is once i have started my exe than if i try to open it again than it shouldnt get opened i.e. only one instance is allowed to run at a time.

Thanx...
use registry for that
whenevr the application starts it will check the registry first if its alredy made then it will stops its execution
if not then update registry
u may try this with databse also
Mar 15 '07 #2

P: 27
use registry for that
whenevr the application starts it will check the registry first if its alredy made then it will stops its execution
if not then update registry
u may try this with databse also
ya diwakar i thought of database but feel that it wont be good idea
can u plz tel me how to access registry thru vb
Mar 15 '07 #3

Post your reply

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