Is there a way to set the StartPosition of a Windows Forms form using code? It seems whatever I try results in the StartPostion being the default.
Here is what I am
To center on parent for the .Show call, this is what I had to do:
childForm.Location = new Point( (parentForm.Location.X + parentForm.Width / 2) - (childForm.Width / 2), (parentForm.Location.Y + parentForm.Height / 2) - (childForm.Height / 2)); childForm.StartPosition = FormStartPosition.Manual;