winform程序如何调用google api?
比如google maps api
在winform程序里如何调用呢?
看到的好像都是js调用的 网页方式

解决方案 »

  1.   

    [DllImport("*.dll")]
    //private static extern 返回值类型   函数名(参数1,参数二);
      

  2.   


    <html xmlns="http://www.w3.org/1999/xhtml">
      <head></head>
      <body>
        <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://ditu.google.cn/maps?hl=zh-CN&amp;q=www.google&amp;ie=UTF8&amp;brcurrent=3,0x31508e64e5c642c1:0x951daa7c349f366f%3B5,0&amp;ll=35.140093,112.081146&amp;spn=9.707642,16.037571&amp;output=embed"></iframe><br />
      </body>
    </html>[code=C#]
    public Form1()
            {
                InitializeComponent();            string str = null;            StreamReader sr = new StreamReader("../../HTMLPage2.htm", Encoding.Default);            webBrowser1.Navigate("about:blank");            webBrowser1.Document.OpenNew(true);            str = sr.ReadToEnd();            webBrowser1.DocumentText = str;        }[/code]
      

  3.   


    这跟调用google map api 不是一回事吧??
      

  4.   


    你直接在html用JS调用修改就行了,然后后台就不用变