Is there a way to maximize a second form on the secondary monitor or to place a form on the secondary monitor while a form is running on the primary monitor.Graham,
You can call the GetSystemMetrics Windows API function to determine how many monitors your system currently has attached and are defined. I use dual display setup and I can switch between dual display with an Extended Desktop or with both monitors displaying the same screen. GetSystemMetrics(80) returns a value of 2 when I have the displays set to "Extend My Windows Desktop onto this Monitor" when setting up my second display. When "Extend My Windows Desktop onto this Monitor" is not checked, the return value is 1.
DECLARE INTEGER GetSystemMetrics IN WIN32API INTEGER nIndex
? GetSystemMetrics(80)
When I set Monitor 2 to the left in the Display Properties Settings tab, then the LEFT Property of the Form must be a Negative value. When Monitor 2 is on the right then the Form's LEFT Property must be set to a value greater than SYSMETRIC(1) your Screen Width.