-
What is form.cs?
I try to write my first c# code in Visual Studio .Net Editor for Windows Application, and this page called form.cs is loaded by default.I create a new item called 'hi.cs', write my code there, but when I try compiling, I get an error.I'm doing something wrong?
Not sure if this is the correct forum, if not, please guide me & thanks for any responses.
-
Re: What is form.cs?
Erased the code from form.cs & wrote down my code..
I guess this is the answer?
-
Re: What is form.cs?
Yes this is the correct forum for C# questions.
".cs" is the file extension for a C# class file.
-
Re: What is form.cs?
The Form1.cs file is the a windows Form created by the visual studio automatically. If you delete it then you'll have to go to the "program.cs" file and remove the lines related to the Form1 Class. you can just rename it and if using VS2005 it will automatically refactor other parts of your code to match the new name. other wise (VS 2002, 2003) you have to do it manually
-
Re: What is form.cs?
Its an default file generated by VS.
Extension of C#
C Sharp-cs
in solution explorer change the start up as hi.cs, it might shoot the error