I see that if I try to set the form location via:
public Form1()
{
InitializeComponent();
this.Location = new Point(0, 0);
}
or via the Properties Editor windows (i.e, via the InitializeComponents() method) my desired location is ignored and the window appears (at least on my dev machine) at (156,156) - probably some default location.
However, if I do the same line in the Form_Load() handler - it works just fine.
private void Form1_Load(object sender, EventArgs e)
{
this.Location = new Point(500, 500);
Debug.WriteLine(this.Location);
}
So my question is Why? Clearly, (or not clearly) other properties such as Width/Height can be set in the constructor and they seem to work just fine.
(I ask because I teach C#/WinForms and I want to give the correct explanation to the students)