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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -

ios - Does Core Data autoupdate a many to many relationship on saving -