|
The WebBrowser1 DocumentCompleted event is being called four or five times. Should that only be called one time? This is the Code that I have, let me know if you have any idea? Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim networkAvail As Boolean = testConn() AddHandler WebBrowser1.DocumentCompleted, AddressOf WebBrowser1_DocumentCompleted If networkAvail = True Then sw.Start() WebBrowser1.Navigate("http://www.cnn.com/") Else MsgBox("You have no internet connection") End If End Sub Private Sub WebBrowser1_DocumentCompleted(ByVal sender As Object, ByVal e As EventArgs) MessageBox.Show(WebBrowser1.DocumentText) End Sub
|