Why does Application.Current == null in a WinForms application?

Viewed 14289

Why does Application.Current come out to null in a WinForms application? How and when is it supposed to be set?

I am doing:

 static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.Run(new MainForm());
        }
    }
3 Answers
Related