...

View Full Version : VB: Switch focus to another app



Anthony2oo4
02-04-2005, 10:27 PM
ok guys, am trying to make a app that only lets you run it once. So far I have been successful, but i am haveing trouble trying to get the app to switch to the exe file that is already running.

If App.PrevInstance Then 'Is there a previous instance?
Unload Me 'If so close me
Else
End If

I want it to switch back to the app that is already running. Thanks for your time.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum