I have a form which displays several graphics and in order to improve the visual experience while the graphics are rendered I have used this piece of code that enables Double Buffering.
When I execute the application without minimizing/maximizing the form, the Double Buffering works excellent, but if I happen to minimize the form and maximize it again, now the Double Buffering doesn't work anymore and the graphics get repainted with a visible flickering.
So is there a way to turn on Double Buffering every time the form gets minimized/maximized?