It can't work when... - TechRepublic
General discussion
June 16, 2003 at 02:10 PM
tuzib

It can’t work when…

by tuzib . Updated 23 years, 1 month ago

SysTem:win98
Language:VB 6.0
I want to prevent an Application running twice.
I tried the code:
If App.PrevInstance Then

end

end if
But it only works when the Application runs in the same directory.It can’t work when I copy it in another directory and run again(the previous has run from the original directory) ,it can be run twice indeed.
how Can I correct it?

This discussion is locked

All Comments