![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Posts: 29
Rep Power: 0
![]() |
C# Forms and VS 2005
I am new to the whole dialog part of C# and have a few questions.
When I create a new Windows Application in VS 2005 it creates a few different files. They being: Program.cs, Form1.cs, and under Form1 you have Form1.Designer.cs / Form1.resx. My question is.. what file do I include all of my code in? Not the dialog design its self, but variables I am defining and functions. In Program.cs? I tried this and it gives me the errors that the variables are unused or never assigned. They are used, They provide information to labels in the dialog. Thanks in advance |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
when you are in design view, double click on any component of you form, or the form itself and it takes you to the corresponding file. I believe (for vs2005 ) that form1.cs (inside class form1) is where the code should go, the other files are autogenerated
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|