
Я пытаюсь применить шаги Mostlytech, но у меня просто это не работает, окно всегда отображается на одном и том же мониторе независимо от выбранных AllScreens< Параметр /code>.:
Мой C#:
Код: Выделить всё
public MainWindow () {
this.WindowStartupLocation = WindowStartupLocation.Manual;
Debug.Assert(System.Windows.Forms.SystemInformation.MonitorCount > 1);
System.Drawing.Rectangle workingArea = System.Windows.Forms.Screen.AllScreens[0].WorkingArea;
this.Left = workingArea.Left;
this.Top = workingArea.Top;
this.Width = workingArea.Width;
this.Height = workingArea.Height;
this.WindowState = WindowState.Maximized;
this.WindowStyle = WindowStyle.None;
this.Topmost = true;
this.Show();
InitializeComponent();
SetLists();
// Rest of the Program.
}
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/783 ... pplication