System.Windows.Forms.Control.MouseWheel Event

Occurs when the mouse wheel moves while the control has focus.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public event MouseEventHandler MouseWheel

Remarks

When handling the Control.MouseWheel event it is important to follow the user interface (UI) standards associated with the mouse wheel. The MouseEventArgs.Delta property value indicates the amount the mouse wheel has been moved. The UI should scroll when the accumulated delta is plus or minus 120. The UI should scroll the number of logical lines returned by the SystemInformation.MouseWheelScrollLines property for every delta value reached. You can also scroll more smoothly in smaller that 120 unit increments, however the ratio should remain constant, that is SystemInformation.MouseWheelScrollLines lines scrolled per 120 delta units of wheel movement.

For more information about handling mouse wheel messages, see the WM_MOUSEWHEEL message documentation in the MSDN library at http://msdn.microsoft.com/library.

Mouse events occur in the following order:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0