UtilDisplaySetPrimaryScreen Method
Sets the specified
Screen as primary.
This functionality will work only with a setup of two monitors.
This functionality does not support three or more monitors.
Namespace: DevCase.Core.IO.Devices.DisplayAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void SetPrimaryScreen(
Screen scr
)
Public Shared Sub SetPrimaryScreen (
scr As Screen
)
Dim scr As Screen
UtilDisplay.SetPrimaryScreen(scr)
public:
static void SetPrimaryScreen(
Screen^ scr
)
static member SetPrimaryScreen :
scr : Screen -> unit
No code example is currently available or this language may not be supported.
Parameters
- scr Screen
-
The new primary Screen.
This is a code example.
No code example is currently available or this language may not be supported.
Dim secondaryMonitor As Screen = (Screen.AllScreens().Where(Function(s As Screen) Not ScreenExtensions.IsRealPrimaryScreen(s))).Single()
SetPrimaryScreen(secondaryScreen)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.