Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

MouseDown event and MouseMove event

$
0
0

System.Windows.Forms.Control class has some Mouse events, such as MouseDown, MouseMove, MouseUp and MouseClick event.

Generally, when I move mouse to upon a Panel control and then just click the mouse, the events are fired with the order of MouseDown, MouseClick, MouseUp.
And the event order will be MouseDown, MouseMove, MouseClick, MouseUp if I move the mouse after press the mouse.

Now my question is why sometimes even if I don't move the mouse but just click it, the MouseMove event is still fired with a MouseEventArgs same with the args of MouseDown event. Is the MouseMove event can be fired even if don't move the mouse?


Viewing all articles
Browse latest Browse all 12583

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>