Display() not working after PC Hibernate

I've noticed that some things dont work properly after a machine has gone to sleep or hibernate (S1 to S5).

Display()

is one of the commands that seems to stop working, but switching tabs on a sheet or alt-tabbing between programs will refresh the window in question.

Any ideas?

TIA

Show us your code?

I switch a lot between monitors while I’m waiting for some process or other to finish and it always “amuses” me that when I click on a button, on a window that doesn’t have focus, I find I have to click twice! :grinning_face_with_smiling_eyes:

Fixed. The Hibernate/Sleep was short cutting the code so Display never got to run.