开发者

Notification on screen orientation change

开发者 https://www.devze.com 2022-12-15 22:40 出处:网络
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).

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号