且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在visual studio 2008中添加地图

更新时间:2023-02-21 09:32:08

我还没有尝试添加实时谷歌地图,但我想你可以搜索谷歌地图api。

但是,如果你只是想要一个图像,请执行以下操作:



拖动pictureBox控件到你的表单。

在Form_Load事件中输入 pictureBox1.Source =yourImage.png;

这就是它。希望这有帮助 - CCB
I have not tried to add a live google map, but I think you can search for a google maps api.
But then,if you just want an image do the following:

Drag a pictureBox control to your form.
In the Form_Load event put pictureBox1.Source = "yourImage.png";
And that's it. Hope this helps - CCB