This documentation is archived and is not being maintained.
SystemSettings.ScreenOrientation Property
Visual Studio 2008
Gets or sets the current screen orientation of a device.
Assembly: Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)
'Declaration Public Shared Property ScreenOrientation As ScreenOrientation 'Usage Dim value As ScreenOrientation value = SystemSettings.ScreenOrientation SystemSettings.ScreenOrientation = value
Property Value
Type: Microsoft.WindowsCE.Forms.ScreenOrientationOne of the enumeration values, which are 0, 90, 180, and 270. The default is 0 (portrait view).
The following example sets the value of this property to 0 and displays the value on the status bar. This example is part of a larger example that is provided for the SystemSettings class.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: