VB Code:
Private Sub rdoPageTypeChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rdoFind.CheckedChanged, rdoStandard.CheckedChanged
If Not Me.Visible Then Return
If rdoStandard.Checked Then
wb.Navigate(Application.StartupPath & "\TestPage.htm")
lblHighlightText.Visible = False
txtHighlightText.Visible = False
Else
wb.Navigate(Application.StartupPath & "\HighlightPage.htm")
lblHighlightText.Visible = True
txtHighlightText.Visible = True
End If
End Sub
This seems to be a loop to insure the webbrowser loads up properly. But I don't know how it is instigated...