How to make an Automated Refreshing Web Browser Using VB.NET
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Timer1.Enabled = False
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
If WebBrowser1.Visible Then
WebBrowser1.Refresh()
End If
If WebBrowser2.Visible Then
WebBrowser2.Refresh()
End If
End Sub
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
If WebBrowser1.Visible Then
WebBrowser1.Navigate(TextBox1.Text)
End If
If WebBrowser2.Visible Then
WebBrowser2.Navigate(TextBox1.Text)
End If
End Sub
End Class
Comments
Post a Comment