It has 4 possible values, 1 for each orientation. 90 degrees apart.
This is for CF .NET 2.0 but should work with newer versions as well.
Sample:
Code: Select all
If (Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation = 3) Then
Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation = 0
Else
Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation = Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation + 1
End If