spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2013
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Earlier Content
Past News Items
Past What's New Announcements
 Sponsors
 Order

MapPoint 2013

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials
MapPoint

Map Visitors

  MAPPOINT Q & A  

Top | Post New Question | Read All | MP2K Asks Microsoft

610 Phuong - February 24, 2002

1. I wrote a small application by VB code, I used Mappoint ActiveX Control 2002 in this application. 2. After opened a map, I selected a position on the active map (Click mouse). 3. I want to get latitude and longitude of above position. but i can't do it.

Answer:

First, get the code from Gilles Kohl's famous article that allows you to get latitude and longitude from a MapPoint location object. Then use the BeforeClick event to get the x and y coordinates of the spot being clicked. Use the XYToLocation method to get a location object. Finally, use Gilles's code to get the latitude and longitude from the location object. Display the lat and lon in a label or a text box.

- Walt Cygan

Post New Answer / Follow-up


Google
 
MP2Kmag Internet


 Recent Discussion
 Resources


Want Your Site To Appear Here?

   © 1999-2012 MP2K. Questions and comments to: website@mp2kmag.com
  Microsoft and MapPoint 2002/2004/2006/2009/2010/2011/2013 are either trademarks or registered trademarks of Microsoft.