MouseMove is fired every time I click on pictureBox

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
 
S

Simon Hart [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top