Panels and scrolling

  • Thread starter Thread starter Code Monkey
  • Start date Start date
C

Code Monkey

Suppose you've got a small Win Forms project and on one of the forms,
there's a panel.

In this panel, you programmatically place maybe 40 controls, which will
force the panel to scroll. You set the panel to AutoScroll.

Compiling the project seems fine - everything scrolls as it
should.....except for one thing.
The panel does not react to mousewheel events. All I want to do is
enable scrolling with a standard wheel mouse. How do I acheive this?

Please help - its something that's eluded me for a few months now.
 
Handle the MouseWheel Event.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 
Back
Top