How can I add google maps in vb.net.

Hello,
How can i add a link of google maps in my vb.net desktop app.

Cheers
RIASAsked:
Who is Participating?
 
Ariana JohnsonConnect With a Mentor BloggerCommented:
Step 1. Firstly, create a new project and select Windows Form Application
Step 2. Add a WebBrowser control (which will hold your map) to your Form1. Let's call it "wbmap"
Step 3. Create a .html file named "googlemap_template.html" with your favourite text editor and paste the following code:
Step 4. Add the googlemap_template.hmtl file to your project (right click on your project->add->existing item)
Step 5. Once it appears in your Solution Explorer, set its properties to: - Build Action -> Embedded Resource - Custom Tool Namespace -> write the name of the project
Step 6. Add a new class (right click on your project->add->class). In my example I'll call it GoogleMapHelper.
Step 7. Paste the following code into your class:
Step 8. Now we can use our GoogleMapHelper class to load the map into our webbrowser by simply creating and instance and calling its loadMap() method.


http://stackoverflow.com/questions/9451954/adding-google-maps-to-a-vb-2010-application
1
 
RIASAuthor Commented:
Perfect! Cheers!
0
All Courses

From novice to tech pro — start learning today.