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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -