tags:

views:

969

answers:

3

Hello,

is there an easy way to hook to an event that is triggered on change of global screen resolution?

Thanks in advance

Matze

+8  A: 

Handle the following event:

Microsoft.Win32.SystemEvents.DisplaySettingsChanged

You may refer to this page for more details.

To learn about the SystemEvents class, see this and this.

Frederick
+2  A: 

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.

Radoslav Hristov
A: 

Thank you! This place is much better than MSDN or Google to get fast answers.

Best Wishes!

Matze

Matze
This sort of thing should really be in a comment to the answer. Welcome to the wonderful world of SO!
Sam Meldrum