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 clas
Based on this other SO question, Application.Current is a WPF feature and not a WinForm feature.
Application.Current Question
There is an MSDN post that shows how to leverage the feature in Winform by adding some references to your code:
you can add a reference to PresentationFramework first:
1.In Solution Explorer, right-click the project node and click Add Reference.
2.In the Add Reference dialog box, select the .NET tab.
3.Select the PresentationFramework, and then click OK.
4.Add "using System.Windows.Shell;" and "using System.Windows;" to your code.