Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,

while i'm trying to run this code to display the google map ,i have faced with some difficulties on doing so. the message i got is

You seem to be using an unsupported browser.
Old browsers can put your security at risk, are slow and don't work with newer Google Maps features. To access Google Maps, you'll need to update to a modern browser.

please anyhelp...



VB
Dim query As New StringBuilder
Dim street As String = TextBox1.Text
      Try
          Cursor = Cursors.WaitCursor
          query.Append("http://maps.google.com/maps?q=")
          If TextBox1.Text <> String.Empty Then
              street = TextBox1.Text.Replace(" ", "+")
              query.Append(street)
          End If
          WebBrowser1.Navigate(query.ToString)
      Catch ex As Exception
          MsgBox(ex.Message)
      End Try
Posted
Updated 8-Aug-15 21:26pm
v2
Comments
Sergey Alexandrovich Kryukov 9-Aug-15 11:54am    
It's not "in Visual Studio", it's in your application. Visual studio is merely an IDE.
—SA
sreeyush sudhakaran 10-Aug-15 5:58am    
You need to get a application authorization from google to view the map in your custom web browser and your browser need to be supported by google standards, Instead you can develop a ASP .NET Application.

1 solution

WebBrowser[^] component has several restrictions[^]. It might be the reason why google maps does not load into it.

MSDN wrote:
  • The WebBrowser control should not be used to create a general-purpose browser application, because the API is not designed to support all of the needed security features for such an application.
  • The WebBrowser control does not provide the ability to view URLs or a secure lock icon.
  • Users cannot navigate from https pages to http pages in the WebBrowser control. This differs from the device browser, in which users can navigate from https pages to http pages.
  • An application cannot share cookies with Internet Explorer Mobile.
  • Script is disabled in the browser by default unless you set the IsScriptEnabled property to true in your application.


For further information, please see: Webbrowser Control Limitations[^]
 
Share this answer
 
v2

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