title: How do you set the StartPosition of a Windows Forms form using code?
body: <p>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.</p>
  <p>Here is what I am doing in the form to display:</p>
  <pre><code>    public DealsForm()
      {
          InitializeComponent();
          this.StartPosition = FormStartPosition.CenterParent;
      }
  </code></pre>
  <p>Here is what I am doing to display the form:</p>
  <pre><code>    private void nvShowDeals_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
      {
          DealsForm frm = new DealsForm();
  
          frm.DataSource = this.Deals;
  
          frm.Show(this);
      }
  </code></pre>
  <p>I have tried putting the following in each of the above methods, to no avail:</p>
  <pre><code>this.StartPosition = FormStartPosition.CenterParent;
  </code></pre>
  <p>If I set it via the Property Editor ... it works perfectly, but I would <strong>really</strong> like to do it via code.</p>
  <p>Should be a no-brainer ... but for the life of me I can't seem to figure it out ... maybe I need more caffeine.</p>
  <h3>Update:</h3>
  <p>If I do a <code>ShowDialog()</code> and pass the parent it works ... but I really don't want to show it as a Dialog.</p>