Question

Windows 7, .NET 3.5
I need to know when netbook (small laptop, but normal Windows 7) changes orientation (there is a button on the netbook that is used to switch landscape/portrait orientation).

This tells me the orientation, but I am looking for the change notification event:

System.Windows.Forms.SystemInformation.ScreenOrientation

Do I have to reference WindowsMobile to get that?

Was it helpful?

Solution

There is no such event as far as I am concerned. There is however a MSDN article covering this using a different technique. I guess you could write some sort of wrapper for this to work with ScreenOrientation

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top