Can only open one instance of my program

hzeigler4

Member
Joined
Jun 19, 2006
Messages
13
Programming Experience
3-5
I have an exe installed that I created from my VB.NET app. Is there code I can put in that will only let a user open my program once and if they try to open it and it is already open, I want to set the focus to it. This way they wont be able to accidently open two instances of the program and be typing data into two different ones.
 
interesting, it does work in VS 2003 (i just tested it again in a new app) i havent tried it in VS 2005 yet and i dont know anyone who has 2002 for me to test it in
 
Back
Top