Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / December 2007

Tip: Looking for answers? Try searching our database.

where should I keep all the funtions?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Allen - 06 Dec 2007 04:40 GMT
I am working with forms.  I am used to work with regular C++ code, where all
your functions are going to be on the bottom of the source code file.  I
notice when working with forms using Microsoft Widows .NET Framework that
provides a set of classes for building GUI applications all your work will
be with the header files.  My question is where should I keep all the
functions?

Signature

Thanks
Allen

Bob Powell [MVP] - 09 Dec 2007 23:23 GMT
Functions, or more properly "Methods" are just written into the C# source
file.

There is no concept of header and source file as you will find in C++.

There is a notion of a "partial" class however. This is most often used by
the IDE to seggregate your code from that injected automatically by the
design-time system. Generally you will edit the code in the .CS file that is
visible under the solution. Other .CS files that are lower down the tree are
generally auto-generated.

Signature

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

>I am working with forms.  I am used to work with regular C++ code, where
>all your functions are going to be on the bottom of the source code file.
>I notice when working with forms using Microsoft Widows .NET Framework that
>provides a set of classes for building GUI applications all your work will
>be with the header files.  My question is where should I keep all the
>functions?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.