Windows Phone Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!


Digital Home Thoughts

Loading feed...

Laptop Thoughts

Loading feed...

Android Thoughts

Loading feed...




Go Back   Thoughts Media Forums > WINDOWS PHONE THOUGHTS > Windows Phone Developer

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2006, 12:30 PM
Editor Emeritus
Kris Kumar's Avatar
Join Date: Aug 2006
Posts: 5,074
Default Programmatically Rotating the Screen using the .NET Compact Framework

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. ;-)
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://forums.thoughtsmedia.com/f415/programmatically-rotating-screen-using-net-compact-framework-19196.html
Posted By For Type Date
Windows Phone Thoughts: Programmatically Rotating the Screen using the .NET Compact Framework This thread Refback 03-21-2011 04:44 AM


All times are GMT +1. The time now is 07:35 PM.



Search Engine Friendly URLs by vBSEO 3.6.0