Adding graphics to an image

gianolif

New member
Joined
May 22, 2003
Messages
2
I am trying to plot squares on top of an image using the graphics.fillrectangle method. When the screen is minimised or a control becomes visible over the squares, they disappear. How can I make them stay there?
 
You need to either paint your squares in the Paint event so theyll be painted whenever needed, or paint them on an offscreen bitmap and set the pictureboxs Image property to that bitmap.
 
Back
Top