I am handling a mouse wheel event in a UserControl which inherits NumericUpDown
Private Sub MyUpDown_MouseWheel(sender As Object, e As MouseEventArgs) Handles Me.MouseWheel
Me.Value += e.Delta * Me.Increment ' / WHEEL_DELTA
End Sub
MouseEventArgs.Delta
has this tooltip:
Gets a signed count of the number of detents the mouse wheel has rotated, multiplied by the WHEEL_DELTA constant. A detent is one notch of the mouse wheel.
However I can't find this constant. It is usually 120, but I don't want to bank on usually. How can I expose it to my code?