I deleted default Form1 from my project and added another Windows Form as MyForm().How to set this to run as application. In fact I replaced
Application.Run(new Form()) to
Application.Run(new MyForm()) But its giving the following error:
Error 1 The type or namespace name 'MyForm' could not be found (are you missing a using directive or an assembly reference?)
MyFormclass, then it should be easily solvable :)program.csfile, make sure that you have addedusing <namespace>;at the top.