Hello,
I have a user control that uses a graphic path to draw itself. The control just draws a line with two points. The user can grab on of the points and move it around to change its location. While the user is moving the point, the control is supposed to re-draw itself so the endpoint of the line will be attached to the mouse.
This works fine when I do an Invalidate() on the control, but itflickers, so I want to only invalidate a specific part of the control.
I'm doing a
Invalidate(new Region(_InvalidatePath));
Where _InvalidatePath is is the the combination of the path I just drew and the new path that I want to draw.
I get left over garbage on the screen and I don't get a line between the two points. I'm certain I'm not invalidating the correct area, but I'm not sure exactly what is the correct area.
Thank you for any help you can provide.
Ken