UI not redrawing after display powered off on Win 7
Posted
by oltman
on Stack Overflow
See other posts from Stack Overflow
or by oltman
Published on 2010-04-28T20:52:04Z
Indexed on
2010/04/28
20:57 UTC
Read the original article
Hit count: 324
Some portions of my application's interface are not getting refreshed after Windows 7 powers down the display. More specifically, I'm swapping out images, User Controls, and a button's content while the display is powered off and after it has been restarted, and this isn't being reflected in the UI until I minimize and restore the window or move it to one of the screen's edges.
I've tried calling the Window's InvalidateVisual() method when the app was in a state where it needed to redraw, and that didn't solve the problem. I have only been able to reproduce this issue on Windows 7. Any ideas?
© Stack Overflow or respective owner