Hello,
I'm having a problem here with the code below.
I'm trying to get this code to show the messagebox first before it kills the process can you help me please.
it kills the process but it isnt showing the message box first?.
I'm having a problem here with the code below.
I'm trying to get this code to show the messagebox first before it kills the process can you help me please.
it kills the process but it isnt showing the message box first?.
Code:
If chckmozil.Checked = True Then
If ProcessRunning("firefox") Then
Dim proc() As Process = Process.GetProcessesByName("firefox")
For Each prrrrrrrrrrrrr As Process In proc
MsgBox("Blocked Sorry")
prrrrrrrrrrrrr.Kill()
log.lstprocc.Items.Add("Firefox Webbrowser" & " " & "|" & " " & Now.ToString)
Next
End If
End If