I have a Winforms program with lots of controls in the main window.
When I minimize the program by pressing the minimize button, and then bring it back by clicking the program in the taskbar, it takes a while to redraw all the controls. This gets worse the more controls there are. For example, something like this hypothetical example takes a full second to redraw its contents.
However, if one simply clicks another program's icon (say Google Chrome), and returns to the original Winforms program, the refresh is instant. There's no slow redrawing of controls.
Is there a way to somehow get Windows to 'remember' the window's contents so that minimizing and reshowing the window is instant?