Click here to Skip to main content
15,915,694 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thoughts on using INI files in C#/.NET Pin
roybrew20-Nov-02 15:46
roybrew20-Nov-02 15:46 
GeneralRe: Thoughts on using INI files in C#/.NET Pin
leppie21-Nov-02 0:44
leppie21-Nov-02 0:44 
QuestionTransparent bitmaps? Pin
Marc Clifton20-Nov-02 14:37
mvaMarc Clifton20-Nov-02 14:37 
GeneralApp Monitor Pin
MStanbrook20-Nov-02 9:17
MStanbrook20-Nov-02 9:17 
GeneralExposing C# COM object from Windows Service Pin
solidstore20-Nov-02 8:37
solidstore20-Nov-02 8:37 
GeneralHowto make TreeView with custom expand/collapse images?. Pin
kobalcz20-Nov-02 5:24
kobalcz20-Nov-02 5:24 
GeneralC#1: Naming controls in designer Pin
peterchen20-Nov-02 2:31
peterchen20-Nov-02 2:31 
GeneralRe: C#1: Naming controls in designer Pin
Shaun Wilde20-Nov-02 2:39
Shaun Wilde20-Nov-02 2:39 
GeneralRe: C#1: Naming controls in designer Pin
peterchen20-Nov-02 2:43
peterchen20-Nov-02 2:43 
GeneralRe: C#1: Naming controls in designer Pin
Shaun Wilde20-Nov-02 2:56
Shaun Wilde20-Nov-02 2:56 
QuestionHow Can I develop Plug-im for MSN Messenger Pin
to_ik_khan19-Nov-02 20:04
to_ik_khan19-Nov-02 20:04 
AnswerRe: How Can I develop Plug-im for MSN Messenger Pin
Ryan Cromwell20-Nov-02 4:19
Ryan Cromwell20-Nov-02 4:19 
GeneralRemoting Examples Pin
Vasudevan Deepak Kumar19-Nov-02 19:23
Vasudevan Deepak Kumar19-Nov-02 19:23 
GeneralRe: Remoting Examples Pin
Joshua Nussbaum19-Nov-02 20:45
Joshua Nussbaum19-Nov-02 20:45 
GeneralRe: Remoting Examples Pin
SimonS19-Nov-02 21:27
SimonS19-Nov-02 21:27 
GeneralMulti-Column Listbox :: C# Pin
valikac19-Nov-02 17:08
valikac19-Nov-02 17:08 
GeneralRe: Multi-Column Listbox :: C# Pin
Joshua Nussbaum19-Nov-02 20:56
Joshua Nussbaum19-Nov-02 20:56 
GeneralRe: Multi-Column Listbox :: C# Pin
valikac20-Nov-02 12:07
valikac20-Nov-02 12:07 
GeneralRe: Multi-Column Listbox :: C# Pin
Joshua Nussbaum20-Nov-02 12:46
Joshua Nussbaum20-Nov-02 12:46 
GeneralRe: Multi-Column Listbox :: C# Pin
valikac20-Nov-02 15:10
valikac20-Nov-02 15:10 
GeneralRe: Multi-Column Listbox :: C# Pin
David Stone20-Nov-02 17:48
sitebuilderDavid Stone20-Nov-02 17:48 
GeneralRe: Multi-Column Listbox :: C# Pin
valikac20-Nov-02 17:51
valikac20-Nov-02 17:51 
GeneralRe: Multi-Column Listbox :: C# Pin
LongRange.Shooter21-Nov-02 9:56
LongRange.Shooter21-Nov-02 9:56 
GeneralRe: Multi-Column Listbox :: C# Pin
valikac21-Nov-02 9:59
valikac21-Nov-02 9:59 
GeneralRe: Multi-Column Listbox :: C# Pin
ian mariano20-Nov-02 3:05
ian mariano20-Nov-02 3:05 
Think of WinForms as the dialogs you create in MFC. The "code behind" is similar to that of MFC, you inherit from a base class, and wire up your code. There are differences from MFC in how C# / .NET handles events.

You should review Event Handlers in Visual Basic and Visual C#[^] to understand how the mechanism works. In MFC, you handle messages through the message loop, in C#, you still write a handler, but it's triggered through the delegate / event mechanism. In a nutshell, you add your handler as a "listener" for an event (such as a button click or listbox selection change.)

It would also be wise to review the Windows Forms and Web Forms Recommendations[^].

The term "code behind" is more used with ASP.NET applications, where the "code behind" refers to the class that your aspx page inherits from. ASPX is basically ASP on steroids Poke tongue | ;-P Refer to Creating ASP.NET Web Applications[^] for more information.

"The greatest danger to humanity is humanity without an open mind."
  - Ian Mariano - http://www.ian-space.com/

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.