Put this finction in your Usercontrol:
Protected Overrides Sub OnMouseWheel(ByVal e As _
System.Windows.Forms.MouseEventArgs)
....
End Sub
Note that this event won't be raised unless your "usercontrol" has the focus
when the mouse wheel is used. However, you can set the focus to your user
control in the "OnMouseHover" event:
Protected Overrides Sub OnMouseHover(ByVal e As System.EventArgs)
Me.Focus()
End Sub
"Adrian Game" wrote:
Hi to all that read,
I have created a usercontrol for which i want to be able to use the mouse
wheel. Currently I have to make the form that the control is used in pass
the mousewheel event to the control by code. Is there any way to
automatically get the event for when the mouse is over the control area.
Cheers and thank in addvance for any help provided
Adrian