.NET Graphics opbject not redrawing when window comes to foreground.

notfred

Lifer
Feb 12, 2001
38,241
4
0
I have a C#.NET application I'm writing that draws to a Graphics object displayed on screen (in a PictureBox). When I bring the window to the foreground from behind another window, my Graphics object will not redraw (just shows white space anywhere that was obstructed by the overlappnig window). How can I make it redraw the graphics object automatically when the visibility of the window changes?