NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Control MouseWheel Event

[To be supplied.]

The following declaration shows the syntax for a method that handles the MouseWheel event.

[Visual Basic]
Private Sub ControlName_MouseWheel( _
   ByVal sender As Object, _
   ByVal e As MouseEventArgs _
)
[C#]
private void ControlName_MouseWheel(
   object sender,
   MouseEventArgs e
);
[C++]
private: void ControlName_MouseWheel(
   Object* sender,
   MouseEventArgs* e
);
[JScript]
private ControlName_MouseWheel(
   sender : Object,
   e : MouseEventArgs
);

Parameters

sender
The source of the event.
e
A MouseEventArgs that contains the event data. The following MouseEventArgs properties provide information specific to this event.
Property Description
Button
Gets which mouse button was pressed.
Clicks
Gets the number of times the mouse button was pressed and released.
Delta
Gets a signed count of the number of detents the mouse wheel has rotated.
X
Gets the x-coordinate of a mouse click.
Y
Gets the y-coordinate of a mouse click.

See Also

Control Class | Control MembersTopic | System.WinForms Namespace