Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 25th, 2005, 1:51 PM   #1
n3o_X
Newbie
 
Join Date: Jan 2005
Posts: 29
Rep Power: 0 n3o_X is on a distinguished road
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
n3o_X is offline   Reply With Quote
Old Aug 25th, 2005, 2:27 PM   #2
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
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
OpenLoop is offline   Reply With Quote
Old Aug 25th, 2005, 7:06 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
You can also right-click on Form1.cs on the right and choose "Code View" or whatever it's called.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:31 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC