Announcement

Collapse
No announcement yet.

Multi-Monitor Support unter .net ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multi-Monitor Support unter .net ?

    Wie kann man gezielt ein Formular auf einem 2. Bildschirm
    ausgeben ?

  • #2
    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)

    Comment


    • #3
      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)

      Gruß
      Pete

      Comment

      Working...
      X