I began organizing my code to day into seperarate .cs files, and in order to allow the methods that work with the UI to continue to do so I would create the .cs code under t
After placing the above code in Program.cs, follow these steps:
Right click on the project
Select "Properties"
Set "Output Type" to "Windows Application"
Startup object : namepace.Program