Click here to Skip to main content
15,921,884 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionProject Pin
Ramkumar_S8-Dec-09 22:03
Ramkumar_S8-Dec-09 22:03 
AnswerRe: Project Pin
Richard MacCutchan8-Dec-09 22:40
mveRichard MacCutchan8-Dec-09 22:40 
AnswerRe: Project Pin
Eddy Vluggen20-Dec-09 0:19
professionalEddy Vluggen20-Dec-09 0:19 
QuestionHelp provider+win Form Pin
Ramkumar_S8-Dec-09 15:51
Ramkumar_S8-Dec-09 15:51 
AnswerRe: Help provider+win Form Pin
Richard Blythe8-Dec-09 18:01
Richard Blythe8-Dec-09 18:01 
AnswerRe: Help provider+win Form Pin
Richard MacCutchan9-Dec-09 3:51
mveRichard MacCutchan9-Dec-09 3:51 
QuestionStructuring Windows Forms apps... [modified] Pin
1.21 Gigawatts8-Dec-09 2:25
1.21 Gigawatts8-Dec-09 2:25 
AnswerRe: Structuring Windows Forms apps... Pin
Luc Pattyn8-Dec-09 5:15
sitebuilderLuc Pattyn8-Dec-09 5:15 
Hi,

here is what I do:
1. I don't like region stuff, never use it;
2. sometimes I use partial classes;
3. sometimes I use inheritance, i.e. I create a base class with some of the functionality, derive another class adding (not replacing!) some functionality, derive from that one, and so on, even if all I need is one (or a few) instances of the most derived class.

The advantage of (3) over (2) is you get better locality as part of the code and data is available only to part of the entire construct, as opposed to the many-files-with-a-single-partial-class where it soon starts looking like everything is global.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: Structuring Windows Forms apps... Pin
1.21 Gigawatts8-Dec-09 5:29
1.21 Gigawatts8-Dec-09 5:29 
GeneralRe: Structuring Windows Forms apps... Pin
Luc Pattyn8-Dec-09 5:45
sitebuilderLuc Pattyn8-Dec-09 5:45 
GeneralRe: Structuring Windows Forms apps... Pin
Roger Wright8-Dec-09 18:46
professionalRoger Wright8-Dec-09 18:46 
GeneralRe: Structuring Windows Forms apps... Pin
Luc Pattyn9-Dec-09 2:52
sitebuilderLuc Pattyn9-Dec-09 2:52 
GeneralRe: Structuring Windows Forms apps... Pin
Roger Wright9-Dec-09 18:48
professionalRoger Wright9-Dec-09 18:48 
AnswerRe: Structuring Windows Forms apps... Pin
vtchris-peterson8-Dec-09 9:26
vtchris-peterson8-Dec-09 9:26 
GeneralRe: Structuring Windows Forms apps... Pin
1.21 Gigawatts8-Dec-09 19:15
1.21 Gigawatts8-Dec-09 19:15 
GeneralRe: Structuring Windows Forms apps... Pin
Ashfield11-Dec-09 3:37
Ashfield11-Dec-09 3:37 
GeneralRe: Structuring Windows Forms apps... Pin
vtchris-peterson11-Dec-09 4:06
vtchris-peterson11-Dec-09 4:06 
GeneralRe: Structuring Windows Forms apps... Pin
Ashfield11-Dec-09 9:33
Ashfield11-Dec-09 9:33 
QuestionSame form opens every time Pin
Ozzone7-Dec-09 13:12
Ozzone7-Dec-09 13:12 
AnswerRe: Same form opens every time Pin
Mycroft Holmes7-Dec-09 13:29
professionalMycroft Holmes7-Dec-09 13:29 
GeneralRe: Same form opens every time Pin
Ashfield7-Dec-09 21:00
Ashfield7-Dec-09 21:00 
Questionon successful login, close login screen and activate MDI screen Pin
S.Aijaz6-Dec-09 20:38
S.Aijaz6-Dec-09 20:38 
AnswerRe: on successful login, close login screen and activate MDI screen Pin
dan!sh 6-Dec-09 21:40
professional dan!sh 6-Dec-09 21:40 
AnswerRe: on successful login, close login screen and activate MDI screen Pin
Dave Kreskowiak7-Dec-09 6:20
mveDave Kreskowiak7-Dec-09 6:20 
QuestionIdentifying system process Pin
srikantha_nagaraj5-Dec-09 19:45
srikantha_nagaraj5-Dec-09 19:45 

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.