MouseMove sensibility
- by serhio
I use MouseMove event to move objects(say labels).
simple principle(schematic):
OnMouseMove(e MouseEventArgs)
deltaX = e.X - lastX
foreach label in labels
label.Location.X += deltaX
lastX = e.X
Now, when I have one label there is no problem.
Once the labels number increase, I start to see the labels traces along the moving trajectory.
Is there a way to prevent this kind of traces?
tried
label.Visible = false
label.Location.X += deltaX
label.Visible = true
does not help.