Panels and scrolling

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

Kevin Spencer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top