Dialogbox does not focus
<p>Wrote a login custom dialogbox </p>

<pre><code>static LoginDialog loginDialog;

public static bool ShowLoginDialog()
        {
            result = false; // Success

            loginDialog = new LoginDialog();

            loginDialog.ShowDialog();
            loginDialog.BringToFront();
            loginDialog.TopMost = true;
            loginDialog.Activate();

            return result;
        }
</code></pre>

<p>I call it from another form whitout my interaction, it is fire up when timer ticked:</p>

<pre><code>LoginDialog.ShowLoginDialog();
</code></pre>

<p>The problem is the login screen does not focus on top of the current open form.</p>

<p>How can I solve this problem? Thank you.</p>
