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:
- Is there such an event in .NET?
- If not, is there a windows message I can listen for?
- Will Screen.AllScreens be updated?
- Will it be updated before I catch the event? or after? or is that indeterminate?
If it matters, this is .NET 3.5 and C#.