Re: already running

Tech-Archive recommends: Fix windows errors by optimizing your registry



It depends how critical it is to have a single instance and how devious your
users are.
App.PrevInstance can be fooled by making a copy of the executable and
renaming it.
If you need to avoid that possibility research on MUTEX, however if it is
not a potential problem then App.PrevInstance will be adequate.

Regards
Dave O.

"Robert" <Robert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7BAC1343-82F3-4F2E-BD17-5E7FFF6EEE0D@xxxxxxxxxxxxxxxx
I have a vb 6 program that is on a network folder. Everybody as a shortcut
on
his or her desktop to run my software. I would like them not to open the
same
program two times or more at the same time. How can't I know if the
software
is already running when they click on the shortcut?

Thanks



.