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

Maylar

Member
Joined
Jan 22, 2021
Messages
16
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
 
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:
 
Back
Top Bottom