vb.net WebBrowser1_Navigating事件下e.url乱码
Dim isuseragentset As Boolean = FalsePrivate Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
webbrowser1.Navigate("http://www.baidu.com")
End Sub
Private Sub WebBrowser1_Navigating(sender As Object, e As WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
If isuseragentset = False Then
MsgBox(e.Url.ToString)
e.Cancel = True
isuseragentset = True
WebBrowser1.Navigate(e.Url, e.TargetFrameName , Nothing, "User-Agent: ie" & vbCr & vbLf)
End If
End Sub
以上为精简代码..但是有个严重问题是...操作百度时点击查询.乱码...哪位大神遇到过 ? --------------------编程问答-------------------- 无法重现到你的问题的说……
补充:.NET技术 , VB.NET