ESRI.ArcGIS.Mobile
MouseMove Event
See Also  Send Feedback
ESRI.ArcGIS.Mobile.WinForms Namespace > IMapWinFormsEvents Interface : MouseMove Event

Occurs when the mouse pointer is moved over the map control.

Syntax

Visual Basic (Declaration) 
Event MouseMove() As EventHandler(Of MapMouseEventArgs)
C# 
event EventHandler<MapMouseEventArgs> MouseMove()

Remarks

OnMouseMove can be used to intercept mouse movement to introduce custom behavior related to map control. It is also useful in a lot of other application scenarios. For example, users might want to select features from layer(s) by clicking on the map control to define a selection area. In such case the OnMouseMove and OnMouseUp events (probably OnMouseDoubleclick event as well to signal the end of selection action) could be used to log the coordinates where users click, and draw the selection area in the OnPaint event of the map control.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.