title: Display a form in a console application at a particular point(in the middle of execution)
body: <p>I would like to display a form in the middle of a console application to display some status information and automatically close the form when a particular event occurs. Will the following code portion will be enough for this purpose?</p>
  
  <p><strong>Display the form</strong></p>
  
  <pre><code>ModuleInitializerForm moduleInitializerDlg = new ModuleInitializerForm()
  {
    Parent = parent,
    TopMost = true,
    TopLevel = true,
    Text = Common.MESSAGE_INFO_TITLE,
    ControlBox = false,
    FormBorderStyle = FormBorderStyle.FixedDialog,
    KeyPreview = false,
  };
  
  moduleInitializerDlg.Initialize();
  moduleInitializerDlg.ShowDialog(); 
  </code></pre>
  
  <p><strong>Close the form</strong></p>
  
  <pre><code>public void OnModuleInitializationCompleted(object sender, EventArgs e)
    {
      if (this.InvokeRequired)
      {
        this.BeginInvoke(new ECEventsHandler(OnModuleInitializationCompleted), sender, e);
      }
      else
      {
        this.Close();
      }
    }
  </code></pre>