title: How to hide a Dialog without hide the Main Form in vb.net?
body: <p>In the main form "frmMain.vb" I have a button that when it is clicked runs the following code:</p>
  
  <pre><code>    Dim myform as New frmMyDialog
      myform.ShowDialog()
  </code></pre>
  
  <p>On the "frmMyDialog.vb" form the user can start a public function of the main form and I need to hide the dialog until the function ends, so I wrote this code:</p>
  
  <pre><code>Private Sub btnStartProcess_Click(sender As System.Object, e As System.EventArgs) Handles btnStartProcess.Click
  
      'hide the dialog
      Me.Hide()
  
      'start the sub of the main form
      frmMain.TestSub()
  
      'close the dialog
      Me.Close()
  
  End Sub
  </code></pre>
  
  <p>However, when the dialog becomes hidden, the main form is minimized. How can I hide the dialog without also hiding the main form?</p>
  
  <p>(The "formBorderStyle" property of "frmMyDialog.vb" is "FixedDialog", I don't know if it can help.)</p>