π [Help] Code for Reconnecting your internet at a certain time? [Tapper]
I have been curious for the code, when you disconnect, and you type in a number in seconds, then it connects in that certain time. So like a Tapper that auto-reconnects.
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label1.Text = Label1.Text + 1
Shell("NET START DHCP", AppWinStyle.Hide)
If Label1.Text = TextBox1.Text Then
Shell("NET STOP DHCP", AppWinStyle.Hide)
Label1.Text = 0
Timer1.Stop()
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
End Sub
End Class