Rotate screen

G

Guest

I have a tablet PC and I write a application on this tablet PC, I would like to rotate the screen from portrait<->landscape mode(or 90/180/270 degree), what should I do?

I only find the code for pocket PC 2003 upgrade.

private void SetOrientation(ScreenOrientation so)
{

// Set the requested orientation.
SystemSettings.ScreenOrientation.Angle0 = so;
this.statusBar1.Text = SystemSettings.ScreenOrientation.ToString();
}
 
G

Guest

Chua Wen,

Thanks for the quick response, my question is how to rotate the tablet pc screen,
not detect the screen is portrait or landscape.

B. RGDS
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top