View Single Post

  #3 (permalink)  
Old 10-30-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Code

Ok,
Here is the code for MouseMoveEvent

Private Sub AxMappointControl1_MouseMoveEvent(ByVal sender As System.Object, ByVal e As AxMapPoint._IMappointCtrlEvents_MouseMoveEvent) Handles AxMappointControl1.MouseMoveEvent


Dim oLoc As MapPoint.Location
Dim dblLat As Double, dblLon As Double
Dim strPos As String
Dim strPosp As String
Dim x As Integer
Dim Y As Integer

oLoc = oMap.XYToLocation(x, Y)

CalcPos(oMap, oLoc, dblLat, dblLon)

Statusbar.panel(1).text = dblLat & "/" & dblLon

End Sub
Reply With Quote