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

Posted on 2014-08-07
Last Modified: 2014-08-16

I have this application in VB6 with a brwWebBrowser.

When the form open, it runs:
  StartingAddress = "" & 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.
Question by:Wilder1626
    LVL 11

    Author Comment

    This is an example of what i would need, but inside my VB6 application:
    LVL 11

    Author Comment

    If this can help, this is a sample of the project.
    Thanks again
    LVL 77

    Expert Comment

    by:David Johnson, CD, MVP
    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.
    LVL 11

    Author Comment

    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?
    LVL 77

    Accepted Solution

    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.
    LVL 11

    Author Closing Comment

    Thanks, I started to re build the application in Visual Strudio.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now