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.Scree开发者_C百科nOrientation
Do I have to reference WindowsMobile
to get that?
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
精彩评论