I have a Microsoft wheel mouse. When focus is on a scrollable panel, I
would like to capture mouse wheel movement events to make the panel scroll
as the wheel is turned.



I don't see a mouse wheel event in the Windows.Forms.Control or panel
control.



Is there a way I can capture this in .NET?



Thanks.



Tony Lin

Fremont, CA

Re: How Do I Capture Mouse Wheel Movements? by Bob

Bob
Fri Aug 01 04:43:25 CDT 2003

Mouse wheel detents are in the Delta property of the MouseEventArgs. You
should be able to detect this through the mousemove event.

--
Bob Powell [MVP]
C#, System.Drawing

Check out the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Buy quality Windows Forms tools
http://www.bobpowell.net/xray_tools.htm

New Tips and Tricks include creating transparent controls
and how to do double buffering.

"Tony Lin" <tony@linfamily.org> wrote in message
news:eGARzk#VDHA.1052@TK2MSFTNGP09.phx.gbl...
> I have a Microsoft wheel mouse. When focus is on a scrollable panel, I
> would like to capture mouse wheel movement events to make the panel scroll
> as the wheel is turned.
>
>
>
> I don't see a mouse wheel event in the Windows.Forms.Control or panel
> control.
>
>
>
> Is there a way I can capture this in .NET?
>
>
>
> Thanks.
>
>
>
> Tony Lin
>
> Fremont, CA
>
>
>
>



Re: How Do I Capture Mouse Wheel Movements? by Herfried

Herfried
Fri Aug 01 08:41:37 CDT 2003

Hello,

"Tony Lin" <tony@linfamily.org> schrieb:
> I have a Microsoft wheel mouse. When focus is on a
> scrollable panel, I would like to capture mouse wheel
> movement events to make the panel scroll as the wheel is
> turned.

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWindowsFormsControlClassOnMouseWheelTopic.asp

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet



Re: How Do I Capture Mouse Wheel Movements? by Tony

Tony
Fri Aug 01 11:03:52 CDT 2003

Bob,

Got it! Thanks for your excellent advice again.

Tony


"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:#U1P1EBWDHA.1180@TK2MSFTNGP11.phx.gbl...
> Mouse wheel detents are in the Delta property of the MouseEventArgs. You
> should be able to detect this through the mousemove event.
>
> --
> Bob Powell [MVP]
> C#, System.Drawing
>
> Check out the GDI+ FAQ
> http://www.bobpowell.net/gdiplus_faq.htm
>
> Buy quality Windows Forms tools
> http://www.bobpowell.net/xray_tools.htm
>
> New Tips and Tricks include creating transparent controls
> and how to do double buffering.
>
> "Tony Lin" <tony@linfamily.org> wrote in message
> news:eGARzk#VDHA.1052@TK2MSFTNGP09.phx.gbl...
> > I have a Microsoft wheel mouse. When focus is on a scrollable panel, I
> > would like to capture mouse wheel movement events to make the panel
scroll
> > as the wheel is turned.
> >
> >
> >
> > I don't see a mouse wheel event in the Windows.Forms.Control or panel
> > control.
> >
> >
> >
> > Is there a way I can capture this in .NET?
> >
> >
> >
> > Thanks.
> >
> >
> >
> > Tony Lin
> >
> > Fremont, CA
> >
> >
> >
> >
>
>