I have a program that needs to update some internal data structures when the number of attached displays changes, like when you put your laptop into the docking station and your dual monitors comes to life.
Couple of questions in this regard:
If it matters, this is .NET 3.5 and C#.
Have you looked into SystemEvents.DisplaySettingsChanged
Event:
Occurs when the user changes the display settings.
There's not much more information than this on the MSDN but it might be of some use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With