kiwilime
03-11-2001, 07:17 PM
How do I have the taskmanager checked to see if the VB application is already open. I do not want a user to be able to open multiple sessions of the same .exe file.
thanks
thanks
checking for multiple session with taskmanagerkiwilime 03-11-2001, 07:17 PM How do I have the taskmanager checked to see if the VB application is already open. I do not want a user to be able to open multiple sessions of the same .exe file. thanks Derek Stone 03-12-2001, 01:19 PM Put this code in the Form_Load event of your application: <pre>If App.PrevInstance Then MsgBox "This application is already running!",,"" Unload frmMain Set frmMain = Nothing End End If </pre> Good Luck -cl <a href="http://vb.wsoftware.net" target="_new">http://vb.wsoftware.net</a> |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum