Message box in front of all windows in console application?
<p>I am trying to get a message box to pop up in front of all windows so the user will see it. I have the following code but it seems to put the message box to the very back.</p>

<pre><code>DialogResult dlgResult = MessageBox.Show(new Form() { TopMost = true }, "Do you want to continue?", "Continue?",
            MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        if (dlgResult == DialogResult.Yes)
        {
            Console.WriteLine("YES");
        }
        else if (dlgResult == DialogResult.No)
        {
            Console.WriteLine("NO");
        }
</code></pre>

<p>The above code is run in a thread is this my problem and how would I fix this?</p>

<p>Thanks</p>
