Actually there are some similar questions about this topic but I couldn't see the answer what I am looking for.
For example I have drawn 2 lines on windows form and I want to delete one of them and keep the other, how can I do that?
this.Invalidate();
or Graphics.Clear();
clear all the form, I don't want this, I want to delete specific line. Do you have any other solutions?
The following will delete the all created lines in reverse chronological sequence.
Here's 2 lines side by side:
Here's 2 lines overlapping:
*Remember to dispose your graphics objects!