Can I force a form to display on a dual monitor PC?

Maylar

Member
Joined
Jan 22, 2021
Messages
12
Programming Experience
10+
I'm creating an application that will display data on 2 large forms. The target platform (Windows 10) will have two monitors. and I'd like the application to be aware of that and automatically display the 2 forms on their own monitor. Currently I have to drag one of the forms to the 2nd monitor after startup. Is there any way to automate this?

TIA
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
3,122
Location
Chesapeake, VA
Programming Experience
10+
Yes. You can set the DesktopBounds of each form programmatically. To determine what values to set as the bounds, you can enumerate the screens available to you:
 
Top Bottom