Why does Application.Current == null in a WinForms application?
<p>Why does <code>Application.Current</code> come out to null in a WinForms application? How and when is it supposed to be set?</p>

<p>I am doing:</p>

<pre><code> static class Program {
        /// &lt;summary&gt;
        /// The main entry point for the application.
        /// &lt;/summary&gt;
        [STAThread]
        static void Main() {
            Application.Run(new MainForm());
        }
    }
</code></pre>