如何监测webbrowser1_DocumentCompleted中的e.url值?
本帖最后由 pengwei0417 于 2013-03-18 20:01:05 编辑 在form1上有Webbrowser1控件其网页加载完成的事件中有e.Url.ToString:
Private Sub webbrowser1_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles webbrowser1.DocumentCompleted
e.Url.ToString
End Sub
Dim WithEvents webbrowser1 As New System.Windows.Forms.WebBrowser
Private Sub HouseForRentHandle_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
webbrowser1 = form1.webbrowser1
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
webbrowser1.url=new uri("http://www.abcd.com")
select case [这里要根据e.url.tostring进行不同的操作,如何及时响应上面的e.url.tostring
''''''
End Select
End Sub