title: Do i need to dispose a form after I am done using it?
body: <p>I know that C# is an automatic garbage collection language, but will I notice a difference if I dispose a form? For example:</p>
  
  <pre><code>SettingsDialog dialog;
  private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
  {
      dialog = new SettingsDialog();
      dialog.ShowDialog();
      dialog.FormClosed += new FormClosedEventHandler(dialog_FormClosed);
  }
  void dialog_FormClosed(object sender, FormClosedEventArgs e)
  {
      dialog.Dispose();
  }
  </code></pre>
  
  <p>Or should I leave it as:</p>
  
  <pre><code>private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
  {
      SettingsDialog dialog = new SettingsDialog();
      dialog.ShowDialog();
  }
  </code></pre>
  
  <p>Also, what if SettingsDialog consumes large amounts of memory? Will this make a difference?</p>
  
  <p>Thanks in advance</p>