为什么谷歌地图不会在我的visual studio 2010中显示? [英] why google map does not display in my visual studio 2010?

查看:114
本文介绍了为什么谷歌地图不会在我的visual studio 2010中显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



而我正在尝试运行此代码来显示谷歌地图,我在这方面遇到了一些困难。我收到的消息是



您似乎使用的是不受支持的浏览器。

旧浏览器可能会使您的安全性受到威胁,速度很慢不适用于较新的Google地图功能。要访问Google地图,您需要更新到现代浏览器。



请帮助...







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...



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

推荐答案

WebBrowser [ ^ ]组件有几个限制 [ ^ ]。这可能是谷歌地图没有加载到它的原因。


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

MSDN写道:

  • 不应使用WebBrowser控件来创建通用浏览器应用程序,因为API并非旨在支持此类应用程序所需的所有安全功能。
  • WebBrowser控件不提供查看URL或安全锁定图标的功能。
  • 用户无法在WebBrowser控件中从https页面导航到http页面。这与用户可以从https页面导航到http页面的设备浏览器不同。
  • 应用程序无法与Internet Explorer Mobile共享cookie。
  • 脚本在浏览器中被禁用默认,除非您在应用程序中将IsScriptEnabled属性设置为true。




  • 有关详细信息,请参阅: Web浏览器控制限制 [ ^ ]


    这篇关于为什么谷歌地图不会在我的visual studio 2010中显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆