At the beginning of the file should be a using directive for System.Windows.Forms :
using System.Windows.Forms; static class Program {
Either this, or change the Main method to use full type names:
System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); System.Windows.Forms.Application.Run(new Form1());
... although I would recommend the first solution.
source share