Hello,
is there an easy way to hook to an event that is triggered on change of global screen resolution?
Thanks in advance
Matze
From stackoverflow
Matze
-
Handle the following event:
Microsoft.Win32.SystemEvents.DisplaySettingsChangedYou may refer to this page for more details.
To learn about the SystemEvents class, see this and this.
From Frederick -
There are two events - SystemEvents.DisplaySettingsChanged and SystemEvents.DisplayedSettingsChanging which you can handle. Note that both events are static and you will need to detach your handlers before exiting from your program.
From Radoslav Hristov -
Thank you! This place is much better than MSDN or Google to get fast answers.
Best Wishes!
Matze
Sam Meldrum : This sort of thing should really be in a comment to the answer. Welcome to the wonderful world of SO!From Matze
0 comments:
Post a Comment