in VB 6 we can use App.Previnstance to check for another instance but in .NET 2003 we use something like this
see u later
If UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0 Then
msgbox "Another instance alreay running"
End If
see u later
Comments