Visual Basic (Declaration) | |
---|---|
Public Event MouseMove As MouseEventHandler |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As CredentialWindow Dim handler As MouseEventHandler AddHandler instance.MouseMove, handler |
C# | |
---|---|
public event MouseEventHandler MouseMove |
C++/CLI | |
---|---|
public: event MouseEventHandler^ MouseMove |
The event handler receives an argument of type MouseEventArgs containing data related to this event. The following MouseEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Device (Inherited from System.Windows.Input.InputEventArgs) | |
Handled (Inherited from System.Windows.RoutedEventArgs) | |
LeftButton | Gets the current state of the left mouse button. |
MiddleButton | Gets the current state of the middle mouse button. |
MouseDevice | Gets the mouse device associated with this event. |
OriginalSource (Inherited from System.Windows.RoutedEventArgs) | |
RightButton | Gets the current state of the right mouse button. |
RoutedEvent (Inherited from System.Windows.RoutedEventArgs) | |
Source (Inherited from System.Windows.RoutedEventArgs) | |
StylusDevice | Gets the stylus device associated with this event. |
Timestamp (Inherited from System.Windows.Input.InputEventArgs) | |
XButton1 | Gets the current state of the first extended mouse button. |
XButton2 | Gets the state of the second extended mouse button. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2