How do I as a person is to "TaskManager> Process" and "End Process", it closes another program along with it, so close the two programs together.
I tried following
Private Sub frmAH_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
If e.CloseReason = CloseReason.UserClosing Then
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("CabalMain")
For Each p As Process In pProcess
p.Kill()
Next
End
End If
End Sub
However, it does not close when you close the game GameGuard, wanted closes the game together.