"Scott Meddows" <sc******************@tsged-removeme.com> wrote in message
news:OG**************@TK2MSFTNGP10.phx.gbl...
How can I tell if my program is already running in memory? Code is
appreciated.
'Check to see if a previous instance of this application is running already
If
(UBound(Diagnostics.Process.GetProcessesByName(Dia gnostics.Process.GetCurren
tProcess.ProcessName)) > 0) Then
MessageBox.Show("Already running a copy of this program on your
system.", , MessageBoxButtons.OK, MessageBoxIcon.Information)
Return False
Exit Function
End If
--
------------------------------------------------------------------------
George Shubin Custom Software Development
dX Software Systems Database Applications
Ph: 503-981-6806 Fax: 503-982-0120
www.dxonline.com ge****@dxonline.com
------------------------------------------------------------------------