Question

I would like to create an app for a pocket pc.

One of the features is that the user should rotate the pocket pc 90 degrees counterclockwise to opearate normally the app

How can someone design a "counterclockwise rotated" application with Visual studio? Is there any option in VS that i am missing?

Was it helpful?

Solution

In your project, add a reference to Microsoft.WindowsCE.Forms. Next, add a form and make it 320 (w) x 240 (h). Add "using Microsoft.WindowsCE.Forms;" to the top of your Program.cs file. In your Main() method (before the form is loaded) add this line:

SystemSettings.ScreenOrientation = ScreenOrientation.Angle90;

(it may be Angle270 you want - I don't remember offhand). When your app closes, you'll probably want to set the orientation back to Portrait.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top