Like I said, any GDI+ drawing gets erased every time the control you draw on gets repainted. If you want to erase your line you simply call Refresh on the control you drew on.