Click here to Skip to main content
15,886,075 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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


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.
Posted
v5
Comments
jgakenhe 23-Dec-16 13:15pm    
The webbrowser control defaults to IE7. The problem with that is it is the website does not allow less than IE9. It is a dirty job to fix, but you should google "winforms webbrowser ie9 version" and look for solutions.
zafar_tss 26-Dec-16 4:05am    
i searched a lot. but i still looking for solution. plz help...

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900