MW Map control in a Microsoft Access 2003 form. The map control is in a Frame 2.0 on the main form surface, and it can open and display shapefiles and tiles. I can zoom and pan the map, but I am unable to get it to respond to a "mouse selection by box" even after I've changed the cursor type. The yellow selection box appears, but nothing happens when I release the mouse button.
The following two lines from SelectBox.cs appear to be crucial:
My program also contains the following procedure.
Private Sub axMap_SelectBoxFinal(ByVal Left As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal Top As Long)
MsgBox "here"
End Sub
I thought that setting SendSelectBoxFinal = true would enable the event handler, but that does not seem to be happening. Thanks in advance.
The following two lines from SelectBox.cs appear to be crucial:
axMap1.SendSelectBoxFinal = true;
MapEvents.SelectBoxFinal += AxMap1SelectBoxFinal; // change MapEvents to axMap1
I've translated the first line into VBA, but what is the VBA equivalent for the send line? My program also contains the following procedure.
Private Sub axMap_SelectBoxFinal(ByVal Left As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal Top As Long)
MsgBox "here"
End Sub
I thought that setting SendSelectBoxFinal = true would enable the event handler, but that does not seem to be happening. Thanks in advance.