Click to See Complete Forum and Search --> : detecting if an app is running


Iteron
November 15th, 1999, 12:57 PM
Does any one know how to detect if an application is already running using VB 6.0. Or how can I prevent from running multiple
sessions of my applicaiton. Thank you

November 15th, 1999, 01:12 PM
If App.PrevInstance = true then Exit Sub



Use this property of App object and this logic to exit with some message or without it.
HTH
Vlad

czimmerman
November 16th, 1999, 01:23 AM
See http://www.freevbcode.com/ShowCode.Asp?ID=71 for a complete solution.