I have a program that should update some internal data structures when the number of connected displays changes, for example, when you transfer your laptop to the docking station and your dual monitors come to life.
A few questions in this regard:
- Is there such an event in .NET?
- If not, is there a Windows message that I can listen to?
- Will Screen.AllScreens be updated ?
- Will it be updated before I catch the event? or after? or is it vague?
If that matters, it's .NET 3.5 and C #.
source
share