1
Answer

drawing graphics upon 'cllick' event

Ask a question
cmk

cmk

19y
1.9k
1
Hi, I'm encountering a problem of drawing (pen and font drawing) in a picture box. I understand that i should trigger a 'paint' event in order for me to draw. This will trigger the drawing immediately at runtime, and it goes into an infinite 'loop' of drawing whenever my window application is running (I understand that this is for the drawing to be 'permenantly' drawn, even when the window application is minimized and maximised). However, I require the drawing to take place only when I have a 'click' event (not a 'paint' event), and that the drawing should not disappear when the window application is minimized and maximised. Please advise if you know how to overcome my problem. I've been stucked with this for a few days. regards.

Answers (1)