2

Possible Duplicate:
Detect change of resolution c# WinForms

I have an application written in C# where my window is docked to the edge of the screen.

I need to know where I can find the event if the resolution has changed so I can call the Dock method so I can repaint my window.

On the form object I can only see the SystemColorsChanged event.

Community
  • 1
  • 1
IEnumerable
  • 3,610
  • 14
  • 49
  • 78

1 Answers1

8

You're looking for the SystemEvents.DisplaySettingsChanged event.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964