An object reference is required for the non-static field, method, or p

Posted 14 February 2012 - 10:11 AM

Hi everyone I am nearly new in vb.net and c# and I am converting from VB.Net to C# Net and I have this error.An object reference is required for the non-static field, method, or property 'System.Windows.Application.Mainwindow.get'

this is in the last two lines: MainWindow = new iContract.UI.Master();
Mainwindow.Show();