17-10-12, 04:29 PM
كاتب المشاركة : نور نبهان
فحص ما إذا كان برنامجك قيد التشغيل
فحص ما إذا كان برنامجك قيد التشغيل
كود :
Private Sub Form_Load()
'// Not the best way to check
'// Better to use the FindWindow API
If App.PrevInstance = True Then
MsgBox ("This program is already running.")
End
End If
End Sub