Visual Basic Reference
No MDI form available to load (Error 366)
See Also
There is no MDIForm in your project to load. This error has the following cause and solution:
You tried to load a form whose MDIChild property is set to True, but at run time there was no MDIForm in your project to load.
Add a MDIForm to your project or change the MDIChild property setting to False.