c# - MouseWheel event issues on Controls -
I need to get mousewheel events on picturebox control and according to another answer, Should:
zero pic_MouseWheel (object sender, MouseEventArgs e) {if (e.Delta! = 0) {MessageBox.Show (e.Delta.ToString ()); }} But this does not work Now the message box is displayed and no breakpoint is being hit.
How can I capture a mousewatch event on a picture box and can also determine how the user scrolls down the UP or down wheel?
No problem, I thought it. I need to first focus the image box:
zero pic_Click (object sender, EventArgs e) {(PictureBox Sender) Focus (); }
Comments
Post a Comment