Vb.net网页浏览器控件不支持该网站 [英] Vb.net web browser control not supporting the site
本文介绍了Vb.net网页浏览器控件不支持该网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Private Sub Navigate(ByVal address As String)
If String.IsNullOrEmpty(address) Then Return
If address.Equals("about:blank") Then Return
If Not address.StartsWith("http://") And _
Not address.StartsWith("https://") Then
address = "http://" & address
End If
Try
WebBrowser1.Navigate(New Uri(address))
Catch ex As System.UriFormatException
Return
End Try
End Sub
我尝试过:
嗨每一个,
i我试图使用vb.net网络浏览器控制打开一个网站,但它不支持并显示消息为了更好的UI体验,请在Google Chrome或Internet Explorer 9及更高版本的浏览器中打开网站。我已经安装了Internet Explorer 11.但不知道如何在我的表单中添加此控件。
实际上我想以编程方式填写并提交网页。 plz help。
What I have tried:
hi every one,
i am trying to open a site using vb.net web browser control but it is not supporting and displaying the message "For better UI experience open the site in Google chrome or Internet Explorer 9 and above browsers." i have already installed internet explorer 11. but dont know how to add this control in my form.
Actually i want to fill and submit the web page programatically. plz help.
推荐答案
要指定WebBrowser控件使用的IE版本,您需要在运行应用程序的每台计算机上修改注册表:
Web Browser Control&指定IE版本 - Rick Strahl的Web日志 [ ^ ]
或者,你可以用Chromium替换WebBrowser控件,这是Google Chrome使用的相同引擎:
GitHub - cefsharp / CefSharp:.NET(WPF和Windows窗体)绑定Chromium Embedded Framework [ ^ ]
To specify the IE version used by the WebBrowser control, you need to modify the registry on every computer where you application runs:
Web Browser Control & Specifying the IE Version - Rick Strahl's Web Log[^]
Alternatively, you can replace the WebBrowser control with Chromium, which is the same engine used by Google Chrome:
GitHub - cefsharp/CefSharp: .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework[^]
这篇关于Vb.net网页浏览器控件不支持该网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文