You have added a new using statement for a namespace that has a different Application definition (it may be your own) and takes precedence. You can use the full name to make sure you are targeting the correct Application class:
global::System.Windows.Forms.Application.EnableVisualStyles(); global::System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); global::System.Windows.Forms.Application.Run(new Form1());
(You can omit global:: if you also don't have a class named System , but the above is just more convincing in the fact of ambiguous namespace / class namespace.
Other alternatives include renaming the custom Application class if it is really yours, rather than adding using for any namespace for this file (or any file that uses the System.Windows.Forms Application class) by adding an alias for System.Windows.Forms.Application (this is done with something like using FormApplication = System.Windows.Forms.Application; ) etc.
Servy source share