if a prev existance of application is running and i again run another instance of tht application then i want to popup that prev. application's main window in front as happens in Messengers .. and terminate newly created instance what to do for tht ..

some thing like this in VB

if app.previnstance then

' popup main window/form of previos running application
termination of newly instance of application ..

endif

ne idea on it ??