Discussion Locked

It can't work when...

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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?

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.