![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Is my understanding of code generation in WinForm apps correct?Is my understanding of code generation in WinForm apps correct?
When you create a program that features a single Windows Form using Visual C#'s Windows Form Designer, three source files are created: 1. program.cs, which: .....a. does some preliminary configuration of the form and then launches it, and <-- couldn't configuration be done transparently upon launching? .....b. all the user-written, non-form-related stuff. 2. form1.cs, whose generated code contains that part of the form's class that is to be editted by the user, including "empty" methods: .....a. the constructor, which calls InitializeComponent, which initializes the form, and .....b. various user-written, event-driven methods, which: ..........1. handle "operation" of the form, and ..........2. call Application.Exit, which terminates execution of the form. 3. form1.designer.cs, whose generated code contains that part of the form's class that is NOT to be editted by the user: .....a. the Windows Form Designer generated method InitializeComponent, and .....b. the method Dispose, which disposes of the form. <-- can't this be editted? |
|||
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to sort random access file? | wmmccoy0910 | C Programming Language | 12 | 04-Sep-2006 03:40 |
| Here it is again! 35% - 40% off For Life! | my-e-space | Web Hosting Advertisements & Offers | 0 | 20-Apr-2006 14:48 |
| User defined headers | davis | Miscellaneous Programming Forum | 6 | 16-Feb-2006 18:40 |
| Guidelines for posting requests for help - UPDATED! | WaltP | C Programming Language | 0 | 21-Apr-2005 02:44 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The