Vincent BENNER
11-21-2003, 04:18 AM
I wrote that I wasn't able to do something and I found the solution 1 minute after...
So, I wrote this code to help other guys !
Question : how to know the name of the selected pushpin ?
Answer : in the _SelectionChange event of your
MapPoint control, write :
If TypeOf ctrlMAPPOINT.ActiveMap.Selection Is Pushpin Then
Dim PP As MapPoint.Pushpin
Set PP = pNewSelection
MsgBox PP.Name
' Or do something different
End If
Thanks for the help I received !
Regards,
Vincent BENNER
So, I wrote this code to help other guys !
Question : how to know the name of the selected pushpin ?
Answer : in the _SelectionChange event of your
MapPoint control, write :
If TypeOf ctrlMAPPOINT.ActiveMap.Selection Is Pushpin Then
Dim PP As MapPoint.Pushpin
Set PP = pNewSelection
MsgBox PP.Name
' Or do something different
End If
Thanks for the help I received !
Regards,
Vincent BENNER