How to close a form that opened another form using ShowDialog() : <p>so i have this <code>frmUser</code> but to close this i have to call <code>frmPass</code> (which i called using <code>ShowDialog()</code>instead of <code>Show()</code>) that will confirm first if the user is an admin but the problem is when i execute the codes below</p>

<pre><code>frmUser us = new frmUser(lblEID.Text, lblAdmin.Text, lblType.Text);
us.Hide();
this.Hide();
</code></pre>

<p><code>frmPass</code> only hides itself and not along with <code>frmUser</code>. Also here's my code calling <code>frmPass</code> from <code>frmUser</code></p>

<pre><code>frmPass pass = new frmPass(lblAID.Text, lblName.Text, lblType.Text, "User Module");
pass.ShowDialog();
</code></pre>
