Code for detecting an active process
Page 1 of 1
Code for detecting an active process
All you need is a new form, a new timer and a button
Code for the button:
Code for the timer:
Set the timer enabled true
Code for the button:
- Code:
NOTHING
Code for the timer:
- Code:
Dim myprocess As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName("notepad")
If myprocess.Length <> 0 Then
Button1.Enabled = True
Else
Button1.Enabled = False
End If
Set the timer enabled true
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum