Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Get PushPin within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; how can I get PushPin Id from mousedown event?...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Hi, To get the selected pushpin Name, you have this example in MapPoint Help Code:
Private Sub Form_Load()
'Configure l'application
Set objApp = CreateObject("mappoint.application")
Set objMap = objApp.ActiveMap
objApp.Visible = True
objApp.UserControl = True
End Sub
Private Sub objMap_MouseDown(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)
Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objPin As MapPoint.Pushpin
Set objMap = objApp.ActiveMap
objApp.Visible = True
objApp.UserControl = True
Set objPin = objMap.Selection
If TypeOf objMap.Selection Is Pushpin Then
MsgBox ObjPin.Name
Else
MsgBox "No selection!"
End If
End Sub
I hope it's what you are looking for!! Mohamed |
![]() |
| Tags |
| pushpin |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding Pushpin Name by clicking on the Pushpin?(MP 2002) | NickSP | MapPoint 2006/2009 Discussion | 4 | 01-10-2003 12:11 PM |
Larnaca Holiday
Take a Larnaca holiday through UlookUbook and enjoy beautiful seaside resorts and sandy beaches.