HighTechTalks DotNet Forums  

where should I keep all the funtions?

Dotnet Framework (WinForms Controls) microsoft.public.dotnet.framework.windowsforms.controls


Discuss where should I keep all the funtions? in the Dotnet Framework (WinForms Controls) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Allen
 
Posts: n/a

Default where should I keep all the funtions? - 12-05-2007 , 11:40 PM






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?

--
Thanks
Allen


Reply With Quote
  #2  
Old   
Bob Powell [MVP]
 
Posts: n/a

Default Re: where should I keep all the funtions? - 12-09-2007 , 06:23 PM






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.

--
--
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.


"Allen" <allen_maki.NoSpam (AT) yahoo (DOT) com> wrote

Quote:
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?

--
Thanks
Allen


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.