Click here to Skip to main content
15,923,689 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionRe: Accessing parent form from child from Pin
BDJones14-Dec-09 5:54
BDJones14-Dec-09 5:54 
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 
This may seem like a daft question, but as I'm not a professional C# programmer I think I can get away with it Wink | ;-)

I have a windows form application with a number of controls on it (menu items, push buttons) along with internal methods etc. It’s not big, but like anything over time if I'm using it, mods will be added and it'll get bigger and fatter.

What is the best way to keep this all neat and tidy, along with making it easy to navigate your way through the code?

I mean, I know about ‘region’ elements, which I do make use of, but I still think that sometimes it can get a bit crowded and hard to find the things you’re looking for easily.

Do you pro’s make use of the ‘partial’ keyword, and split things off into separate files to aid readability? Say, leave all the event methods in the forms main class file, and then split off certain things into other files?

What would you guys do if you were writing a large WinForms app for a client?

I appreciate that this is quite a vague question, so vague answers are fine Thumbs Up | :thumbsup:

TIA

Smile | :)


[EDIT]
I should make clear that I don't have all my code in just one file!
That may not easily apparent from my initial post
[/EDIT]


"If you can't explain it simply, you don't understand it well enough" ~ Albert Einstein
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." ~ Paul Neal "Red" Adair

Now reading: 'The Third Reich', by Michael Burleigh

modified on Tuesday, December 8, 2009 8:35 AM

AnswerRe: Structuring Windows Forms apps... Pin
Luc Pattyn8-Dec-09 5:15
sitebuilderLuc Pattyn8-Dec-09 5:15 
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 

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.