dialogresult does not work or partially work for some reason
<p>I made a form to be a dialog and the form only has one textbox, one OK button and one Cancel button. somehow, when the following does not work unless i change rnmForm.DialogResult!=DialogResult.OK), why is that????    </p>

<pre><code> frmRename rnmForm = new frmRename();

        rnmForm.ShowDialog(new Form());
        if (rnmForm.DialogResult==DialogResult.OK)
        {
            MessageBox.Show("test");

        }
</code></pre>
