mocambique
Programmer
I am working on a C# program that will open 2-3 forms based on how many multiple monitors the user has. I want each form to open on a specific monitor.
I can get the program to detect the number of monitors and open the appropriate number of forms but the forms do not go to the specified monitors but instead stay on the primary monitor.
I am trying to use the Bounds function to assign the position.
A code sample:
Is there another parameter that I should be using to get the form to move to the proper monitor?
I can get the program to detect the number of monitors and open the appropriate number of forms but the forms do not go to the specified monitors but instead stay on the primary monitor.
I am trying to use the Bounds function to assign the position.
A code sample:
Code:
public void create_form1()
{
Form form1 = new Form();
form1.Text = "form 1";
form1.Bounds = Screen.AllScreens[0].Bounds;
form1.Show();
}
Is there another parameter that I should be using to get the form to move to the proper monitor?