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?