View Single Post

  #5 (permalink)  
Old 06-05-2003
Manuel Manuel is offline
Junior Member
White Belt
 
Join Date: Nov 2002
Posts: 4
selecting pushpins

Try this:
Private Sub MPC_BeforeClick(ByVal Button As Long, ByVal Shift As Long,
ByVal X As Long, ByVal Y As Long, Cancel As Boolean)

On Error Resume Next
Set oResults = MPC.ActiveMap.ObjectsFromPoint(X, Y)
For Each oResult In oResults
If TypeOf oResult Is Pushpin Then
Cancel = True

...........
You only use "Cancel=True" if it is a Pushpin what you have selected
Reply With Quote