在C#windows窗体应用程序中显示谷歌地图 [英] Displaying google maps in a C# windows form application

查看:256
本文介绍了在C#windows窗体应用程序中显示谷歌地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



这是我在Codeproject的第一个问题。



如何在C#中的Windows窗体应用程序中显示谷歌地图?网上的大多数教程都谈论ASP.NET,但我想用C#来做。



基本上,我想要这样一个应用程序如何工作的逻辑。



请帮助。

Hello to all the members,

This is my 1st question here at Codeproject.

How to display google maps in a windows form application in C#? Most of the tutorials on the web talk about ASP.NET, but i want to do it with C#.

Basically, I want the logic behind how such an application works.

Please help.

推荐答案

可能最简单的方法就是:你可以解决这个问题,你可以在你的表格中嵌入一个Web浏览器。



请参阅: http:/ /www.daniweb.com/software-development/vbnet/code/385622/google-map-control-vb.net [ ^ ]。



抱歉,代码示例是在VB.NET中,但它应该足以理解这个想法。



另外,如果我没有弄错,谷歌地图在这个CodeProject文章的 System.Windows.Forms 应用程序中使用(这次是用C#编写的),只是它只是这个w的一部分ork致力于GSP:使用GPS和C#进行映射 [ ^ ]。br />


-SA
Probably the simplest approach would be this: you can just work around this problem is you embed a Web browser in your Form.

See, for example: http://www.daniweb.com/software-development/vbnet/code/385622/google-map-control-vb.net[^].

Sorry, the code sample is in VB.NET, but it should be enough to understand the idea.

Also, if I'm not much mistaken, Google map is used in the System.Windows.Forms application (this time, written in C#) in this CodeProject article, only it's only a part of this work dedicated to GSP: Mapping with a GPS and C#[^].

—SA


这篇关于在C#windows窗体应用程序中显示谷歌地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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