Set form location c#
c#, forms, location
Solution
private void button1_Click(object sender, EventArgs e)
{
var form2 = new Form();
form2.StartPosition = FormStartPosition.Manual;
form2.Left = 500;
form2.Top = 500;
form2.ShowDialog();
}
Problem
I would like to know how to set my form position. i have tried to do the following: ``` this.Location = Point; ``` or: ``` Form2.Left = Point.X; Form2.Top = Point.Y; Form2.ShowDialog(); ``` This is does not work. What do I do wrong?