MouseMove is fired every time I click on pictureBox

  • Thread starter Thread starter juvi
  • Start date Start date
J

juvi

Hello,

I want to use MouseDown, MouseMove, MouseUp, MouseClick.

MouseDown....Is used for Start e.x and e.y values
MouseMove....enables a bool value
MouseUp...disables bool value if enabled and compares actual e.x and e.y
values with old and starts code for moving picturebox in some direction

MouseClick...should only launch some things when picturebox is clicked.
But the MouseMove is fired every time.

Is there a way to avoid MouseMove if only click??

thx
juvi
 
If you're not interested in MouseMove, don't implement it. Often Controls out
of the box do not do what you want exactly, so the only way to do what you
want is to subclass the control.
 
Back
Top