Windows Phone Thoughts: Programmatically Rotating the Screen using the .NET Compact Framework

Be sure to register in our forums! Share your opinions, help others, and enter our contests.


Digital Home Thoughts

Loading feed...

Laptop Thoughts

Loading feed...

Android Thoughts

Loading feed...



Monday, May 8, 2006

Programmatically Rotating the Screen using the .NET Compact Framework

Posted by Kris Kumar in "DEVELOPER" @ 04:30 AM

http://blogs.msdn.com/davidklinems/archive/2006/04/17/577897.aspx

"Several months back, I wrote about how to determine whether or not a device supported screen rotation. This post prompted the question of how to programmatically rotate the device..The snippets below check the device's current display orientation. If portrait (Angle0), the orientation is changed to landscape (Angle90). If the device has any orientation other than Angle0, it is changed to portrait. ... For more information on this and other cool settings provided by the Microsoft.WindowsCE.Forms namespace, check out the MSDN documentation for SystemSettings."

David Kline has posted a handy code snippet to rotate the Windows Mobile device's screen orientation. I was hoping to try it out myself but the lazy side of me overpowered me. :) I wonder if triggering this code snippet can permanently change the screen orientation for all the applications or only for the application that calls it. It looks like it will do for all applications. I want to try it so that I can rotate the screen to make my email screen more readable. ;-)


4Smartphone

UsedHandhelds.com Place Your Ad Here
Reviews & Articles

Loading feed...

News

Loading feed...

Reviews & Articles

Loading feed...

News

Loading feed...

Reviews & Articles

Loading feed...

News

Loading feed...

Reviews & Articles

Loading feed...

News

Loading feed...

Reviews & Articles

Loading feed...

News

Loading feed...