title: C# ShowDialog Parent Form is null
body: <p>I have two forms.</p>
  
  <p>The <strong>LoadWorkstationFile</strong> prompts the users for the id that they want to load.</p>
  
  <p>The <strong>DisplayDataForm</strong> displays the id's data that they selected on the previous screen.</p>
  
  <p>In the <strong>DisplayDataForm</strong> they can click on an option to load new data, which calls the LoadDataForm as a ShowDiaglog:</p>
  
  <pre><code>private void openToolStripMenuItem_Click(object sender, EventArgs e)
  {
    var answer = MessageBox.Show("Do you wish to save the current work file before continuing?", "Confirmation",
                                 MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
    if (answer == DialogResult.Cancel)
      return;
    if (answer == DialogResult.Yes)
      SaveWorkFile();
    var prevworkstationid = Configuration.WorkstationId;
    var lw = new LoadWorkstationFile();
    lw.ShowDialog(this);
    if (Configuration.WorkstationId != prevworkstationid)
    {
      LoadData();
    }
  
  }
  </code></pre>
  
  <p>As you can see, I am prompting them again with the same screen as before. </p>
  
  <p>In the <strong>LoadWorkstationFile</strong> it has the following code:</p>
  
  <pre><code>  if (this.Parent == null)
    {
      var sc = new ScanCheck();
      sc.Show();
      this.Hide();
    }
  </code></pre>
  
  <p>Initial load everything is fine. When I want to load data again it it has loaded, I end up with 2 of the <strong>LoadWorkstationFile</strong> screens cause Parent always equals null.</p>
  
  <p>Do I have the wrong idea? Should the parent be the <strong>DisplayDataForm</strong> when it is called with .ShowDialog ?</p>
  
  <p>Thanks as usual.</p>