I'm running an autoplay application from within another autoplay application
This is the code im using for the button that opens it.
File.Open("AutoPlay\\Docs\\myapp.exe", "", SW_SHOWNORMAL);
But if the user clicks the button a few times while the app is loading, it ends up opening many instances of the program.
I've tried hiding the button once it has been clicked once. but i am looking for a better solution.
Any ideas on how to only allow one instance of the program to run at any one time?
Thanks
Jason![]()


