Rotating the CUWIN's Screen

Applications, examples, and sample programs using products from Comfile Technology

Rotating the CUWIN's Screen

Postby Mike » Thu Dec 06, 2012 5:28 pm

To change the CUWIN's display orientation, add a reference to Microsoft.WindowsCE.Forms, and set the SystemSettings.ScreenOrientation property.

Unfortunately, I don't know of a way to set the orientation permanently, but if someone knows, please let us know.

C# Code:
Code: Select all
using Microsoft.WindowsCE.Forms;

//Rotate screen by 90 degrees
SystemSettings.ScreenOrientation = ScreenOrientation.Angle90;


VB.Net
Code: Select all
Imports Microsoft.WindowsCE.Forms

'Rotate screen by 90 degrees
SystemSettings.ScreenOrientation = ScreenOrientation.Angle90


CuwinScreenRotation.png
CuwinScreenRotation.png (35.14 KiB) Viewed 2047 times
Mike
Mike
SuperDuperDuper
 
Posts: 551
Joined: Thu Mar 17, 2011 3:54 pm
Location: Seoul, South Korea

Return to Applications and Examples

Who is online

Users browsing this forum: No registered users and 1 guest

cron