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
> >
> >
> >
> >
>
>