when that progressbar hit 10 it will close a process.
When it hit 20 it will open that process.
When it hit 30 it will close that process, again.
Heres a code so hopefully you understand what i mean:
If ProgressBar1.Value = "10" Then
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("chrome")
For Each p As Process In pProcess
p.Kill()
Next
End If
If ProgressBar1.Value = "20" Then
System.Diagnostics.Process.Start(URLbox.Text) '2
LabelX.Text = "2"
End If
If ProgressBar1.Value = "30" Then
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("chrome")
For Each p As Process In pProcess
p.Kill()
Next
End If
Now to the problem im having, I also have form2.In form2 i have 2 checkboxes one "Chrome" and one "Firefox"
When for example "firefox" is checked i want it to close the process "Firefox" in form1
Instead of "Chrome" wich is deafult.
I have no clue how to do this tou, hopefully i can get some help.
Thanks


Sign In
Create Account

Back to top









