Wenn dies Ihr erster Besuch hier ist,
lesen Sie bitte zuerst die Hilfe - Häufig gestellte Fragen
durch. Sie müssen sich vermutlich registrieren,
bevor Sie Beiträge verfassen können. Klicken Sie oben auf 'Registrieren', um den Registrierungsprozess zu
starten. Sie können auch jetzt schon Beiträge lesen. Suchen Sie sich einfach das Forum aus, das Sie am meisten
interessiert.
Hallo,
auf der Hilfeseite <i>Form.DesktopBounds Property</i> ist zu diesem Thema folgendes zu finden: "<i>Desktop coordinates are based on the working area of the screen, which excludes the taskbar. The coordinate system of the desktop is pixel based. If your application is running on a <b>multiple monitor system</b>, the coordinates of the form are the coordinates for the <b>combined</b> desktop.</i>". Über die Eigenschaft <b>SystemInformation.VirtualScreen</b> kann die Abmessung des virtuellen Desktops für beide Monitore ermittelt werden, so dass die Positionierung des Formulars auf dem 2. Bildschirm über die <b>Location</b>-Eigenschaft zum Ziel führen sollte (siehe Hilfeseite <i>Setting the Screen Location of Windows Forms</i> im .NET Framework SDK)
Oder über das statische Property Screen.AllScreens bekommst Du ein Array mit der Information für alle Anzeigen im System. In der Hilfe findest Du ein Beispiel. (Suche einfach nach Screen)
Comment