469,909 Members | 1,683 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

UserControl containing PictureBox objects seems to disable mouse wheel scrolling

Hi all, I've got a UserControl that contains a few PictureBox objects.
If I click on outside of the Picture in the UserControl, the scrolling
with the mouse button works - however, no amount of clicking on the
PictureBox objects will get that scrolling working. However, after I
click on outside of the PictureBox object, then click as many times as
I like on the PictureBox the scrolling with the mouse wheel continues
to work.

I found this:
From what I can determine the answer is to change the PictureBox

objects to Image objects. However, is there another way? I.E. could
extend the PictureBox class and use the following to catch mouse wheel
roll events?

this.MouseDown += new
System.WinForms.MouseEventHandler(this.pictureBoxM ouseDown);

private void pictureBoxMouseDown(object sender,
System.WinForms.MouseEventArgs e) {
//some code to catch whether the mouse wheel is rolling

This strikes me as a little convoluted - is there an easier way?


Nov 17 '05 #1
0 2813

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by serge calderara | last post: by
5 posts views Thread by Bryan Masephol | last post: by
reply views Thread by Thorbjørn Jørgensen | last post: by
8 posts views Thread by rodchar | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.