Community of VE/MapPoint Users and Developers
This is a discussion on find city name & state name on mouse move event within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; How do you find name of the city and the corresponding state on mousemove event (using the mouse coordinates). I ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| find city name & state name on mouse move event Thanks Atzy |
| |||
| to match a place when the mouse move
try this Dim objResults As MapPoint.FindResults Dim objResult As Object Dim i As Integer Set objResults = objMap.ObjectsFromPoint(X, Y) If objResults.Count > 1 Then For i = 2 To objResults.Count Set objResult = objResults.Item(i) If objResult.Type = 12 Then strCP = objResult.Name lblCP = objResult.Name ElseIf objResult.Type = 16 Then lblCommune = objResult.Name End If Next i end if I use it in a beforclick event to disply the postal code and the county name (Commune) on a labels on a form (12 and 16 types) It's working fine but.. when the cursor pass on thematic map. th findResults collection seems to "change" in her behavior.. so the "type" property is NOT allowed. An error ocurred. For me the model object of Mappoint is lacking of consistency . Anyone as a solution? |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ActiveX MapPointControl: How to find county from City, State | UncleJaz | MapPoint 2006/2009 Discussion | 13 | 09-12-2006 03:34 PM |
| How do you find the territory for a given city and state | UncleJaz | MapPoint 2006/2009 Discussion | 0 | 04-05-2006 10:50 AM |
| Finding Longs and Lats on mouse Move | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-22-2004 03:12 AM |
| Capture the Pushpin move event | Maverick | MapPoint 2006/2009 Discussion | 1 | 04-14-2003 01:34 AM |
| Ist it possible to get X, Y from mouse move | blackmap | MapPoint 2006/2009 Discussion | 1 | 12-16-2002 03:54 PM |
Cheap Flight to Tenerife
Get a cheap flight to Tenerife and a cheap hotel in Tenerife giving you a great value holiday in Tenerife. Holiday Hypermarket can make it happen.
Honeymoon Holidays
Book your Honeymoon holiday with Travel Counsellors. A personal advisor will help you plan the perfect honeymoon holiday.
Holidays to Thailand
The best cultures and backgrounds make Thailand an interesting and memorable country to visit. Book great value holidays to Thailand online at dealchecker.co.uk.
Barbados Holidays
Barbados holidays can be a wonderful break from the rat race or an exciting, action packed adventure. Plan the perfect holiday in Barbados.
Holidays
For bargain holidays to destinations including Mexico, South Africa, India and more, visit ULookUBook online today. Check out our free travel guides to help you make an informed decision for your holidays.
Travel Tickets
Travel tickets need not always be expensive. Check out your best travel comparison site, Travel.co.uk
Holidays in Gran Canaria
Have some fun in the sun on the Canary Islands! See On The Beach for information on holidays in Gran Canaria.