Windows Forms Panel - MouseWheel Scroll problem

C

Code Monkey

using VS2005 and c# to create a windows forms application.

One of my forms has a panel which I've added various controls to. Now,
I've set the autoscroll property to true, which is great, but I can't
use my mousewheel to scroll up or down and its annoying the hell out
me.

How do I get a panel to scroll on mousewheel scroll event?

Hope someone can help.
 
B

Bruce Wood

I have the same problem. The mouse wheel works only when you explicitly
click on the scroll bar. I'm guessing that in order for the mouse wheel
events to reach the scroll bar, it must explicitly be given focus. I'm
also guessing that there is some way for the panel (when it has focus)
to pass the mouse wheel events on to its scroll bar, but I'm not sure
how to do that.

Anybody?
 

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