I have a Windows Forms C# project. I want to show a splash screen (frmSplash) and then open up an MDI parent (mdi).
I get a compile time error when I try to create an instance of the MDI form. The following code is in frmSplash in the click event of a button:
Form frm;
this.Close();
frm = new mdi();
frm.Show();
I definitely have an MDI parent called 'mdi'. On the line 'frm = new mdi();', the mdi is underlined in red with the error 'The type or namespace name 'mdi' could not be found (are you missing a using directive or an assembly reference?)'. It's in the same project. How could it not see it?
Can I create an instance of an MDI form? If not, how do I create it?