Multiple monitors

I can get the number of monitors connected to a system by using the SystemInformation.MonitorCount property, but is it possible to force an application to appear on a monitor other than the primary 

Answer this question

Multiple monitors

  • Allen Bergst

    Many thanks guys, it works a treat!
  • DonnaJ

    FWIW, I just tried it and it works fine. I hadn't played with this yet, and was eager to give it a try. Very cool! -- Ken
  • Francois Geldenhuys

    I think you should be able to use the Screen class to do what you're asking.  Assumimg you have 2 monitors, you could do something like this to have your form appear in the top left of the second monitor:

    Screen s = Screen.AllScreens[1];
    myForm.DesktopLocation = s.Bounds.Location;

    I don't have a multi-mon machine available at the moment so I can't test this but I think this should work.

    Thanks,
    Kevin

    --
    Windows Forms Team

  • Multiple monitors