Tag Archives: event

Mousewheel handling somewhat different than expected

Getting the mouse wheel works somewhat different than expected.

  1. The event can not be added from the designer so it needs to be added manually. MouseWheel += … This is easy since the implementation is generated automatically (Two TAB presses)
  2. The mouse wheel messages are send to the control which has the current focus. If the control does not support receiving focus use the parent to add the event handler to. For example, in case of a Panel add the event handler to the Form.
Lastest update in May 2011, inital post in May 2011