Could not find 'WindowsFormsApplication1.Program' specified for Main method after renaming name space

In project -> properties change "startup object" to the new namespace.

Select Startup Object


You should rename through the "Refаctor" feature of Visual Studio.