You are probably doing it in the wrong place. When capturing details of the drawing you should build it as a list or array of lines, colours, thicknesses etc based on user input. However, you should only do the actual drawing in the
Paint Event[
^] of the control.