[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1387
  • Last Modified:

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.
0
Wilder1626
Asked:
Wilder1626
  • 4
  • 2
1 Solution
 
Wilder1626Author Commented:
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
0
 
Wilder1626Author Commented:
If this can help, this is a sample of the project.
Thanks again
custom-browser.zip
0
 
David Johnson, CD, MVPOwnerCommented:
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.
0
When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

 
Wilder1626Author Commented:
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?
0
 
David Johnson, CD, MVPOwnerCommented:
yes but you will have to re-learn a lot of stuff going forward. The new ways of doing things, the syntax, and so forth. FYI your solution can have both C# and VB modules.
0
 
Wilder1626Author Commented:
Thanks, I started to re build the application in Visual Strudio.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now