I have the following code:
//Create the login form.
ConnectionTypeForm ctf = new ConnectionTypeForm();
if (ctf.ShowDialog() == DialogResult.OK)
{
Form form = Statics.CreateForm(
"Main Form",
new MainDesignerControl());
Application.Run(form);
}
And when I run the program, the ConnectionTypeForm
will open on my right (secondary) monitor, but as soon as the MainForm
opens, it opens on the left hand side monitor (Primary). I can't set it's start position to FormStartPosition.CenterParent
but as the ConnectionTypeForm
isn't actually MainForm
's parent, it's useless.
Any suggestions? I'd just like it to open on the same monitor.