Shell Command
So, some of you may remember me, I used to be quite good with VB.
I haven't been on it for a while so I'm getting back to grips with it
Anyways, I've got this code for a lag switch but it doesn't seem to work.
I've tried the line in cmd.exe and it works as intended.
I haven't been on it for a while so I'm getting back to grips with it
Anyways, I've got this code for a lag switch but it doesn't seem to work.
I've tried the line in cmd.exe and it works as intended.
Code:
Private Sub Automatic_Tick(sender As System.Object, e As System.EventArgs) Handles Automatic.Tick
Automatic.Interval = TextBox1.Text
If Automatic.Enabled = True Then
Button1.Enabled = False
Shell("net stop dhcp")
End If
End Sub
