|
-
Jul 11th, 2007, 02:15 AM
#1
Thread Starter
New Member
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.
-
Jul 11th, 2007, 02:32 AM
#2
Thread Starter
New Member
Re: What is form.cs?
Erased the code from form.cs & wrote down my code..
I guess this is the answer?
-
Jul 11th, 2007, 02:35 AM
#3
Re: What is form.cs?
Yes this is the correct forum for C# questions.
".cs" is the file extension for a C# class file.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 11th, 2007, 03:39 AM
#4
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
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jul 22nd, 2007, 11:50 PM
#5
Fanatic Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|