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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.