Link to home
Start Free TrialLog in
Avatar of Wilder1626
Wilder1626Flag for Canada

asked on

VB6 - Get lattitude and longitude on mouse click in Google Map

Hi

I have this application in VB6 with a brwWebBrowser.

When the form open, it runs:
  StartingAddress = "http://www.8051projects.info/maps.asp?lat=" & Text1.Text & "&lon=" & Text2.Text
      'Try to navigate to the starting address
        brwWebBrowser.Navigate StartingAddress

Open in new window


Text1 = a specific Latitude and Text2 = a specific Longitude.

What i would like to do is to be able to point a specific place on the same map (by clicking it) and it would tell me the exact Latitude and Longitude for that specific point. It would then update the Text1 and Text 2 with that lat and long values.

How can i do that?

Thanks again for your help.
Avatar of Wilder1626
Wilder1626
Flag of Canada image

ASKER

This is an example of what i would need, but inside my VB6 application:
http://vikku.info/programming/google-maps-v3/get-lattitude-longitude-onclick-and-onmouseover-google-map-v3.htm
If this can help, this is a sample of the project.
Thanks again
custom-browser.zip
Time to move onward VB6 hasn't been supported since March 2008.  With the demise of support for Windows XP, VB6 has no supported operating system. The express versions are available free here.  You're kicking a dead horse these days.
Hi David,

I have a huge application already done on VB6. But i do understand that i will have to convert it one day. I should probably start ASAP. Will i be able to build the same type of apps,exe with forms with Express 2012 for Windows Desktop?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, I started to re build the application in Visual Strudio.