![]() |
|
#5
|
|||
|
|||
|
hmm, for vb6 it can be done very simply using "App.PrevInstance".
Code:
Private Form_Load( )
If App.PrevInstance Then
Unload Me
End If
End Sub
Code:
Function PrevInstance() As Boolean
If Ubound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess).ProcessName)) > 0 Then
Return True
Else
Return False
End If
End Function
http://www.thescarms.com/dotNet/SingleInstance.asp
Last edited by goggles99; 05-24-2005 at 16:47. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [C] NoDel (tool to prevent file deletion) | Insid3Code | Source Code | 0 | 02-10-2015 16:38 |
| Prevent browser from being killed | nino | General Discussion | 4 | 01-10-2014 02:38 |