-
Hello all,
I am using the methods of the pic control (line, scale etc.) to draw lines on it.
Here's the problem: When the form containing the picture control looses focus, all the lines I have drawn dissappear !!
If I use API calls to do this, would I still have problem ? Any ideas ? (The use of the picture control is a must)
-
Hi, you have 2 options:
(1) Put all drawing commands in the PictureBox's Paint event, or
(2) Set AutoRedraw of PictureBox to true, before the drawing commands.
-
The AutoRedraw method would probably be the best method if your drawings occur at different times.