jh71283 wrote:Object reference not set to an instance of an object.
System.Windows.Application.Current is nothing
Bearing in mind that the application is winforms based, what is the winforms equivalent to System.Windows.Application.Current.Dispatcher?
Below is a code example on how to do this. Basically you need to create the Window in a delegate that is passed to the Invoke method on any control in your Windows Forms solution.
public partial class Form1 : Form
private void button1_Click(object sender, EventArgs e)
Thread thrd = new Thread(new ThreadStart(
public void CreateWindow()
System.Windows.Window wnd = new System.Windows.Window();