By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,973 Members | 1,901 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,973 IT Pros & Developers. It's quick & easy.

book suggestion

P: n/a
I don't create windows application very often, in fact I rarely create a
complete application, but more often am writing plugins.

I have found that when I sit down to create a windows app, I don't really
have a solid plan for the structure of the program. Sometimes I use
Singletons, sometimes I use static members, sometimes I pass references,

I'm tired of it and would like to find a "Best Practices" book that will
cover common issues such as;
What code goes in the form class?
Do people use an "engine" or "application" class? If so, how does it
interact with the UI?
If I have User Controls in my WinForms app and I need access to controls in
the Form class, what is the best way to get to them?
Program options, when to load them, when to save them. Registry? XML file?
These are all questions that I have dealt with every time I write an
application, the problem is, I always solve them different and I ALWAYS end
up with a mismatch of inconsistent approaches that confuse and slow me down.

For example, I encounter a problem today where in one of my UserControl
events, I was changing data that was represented in the Form's TreeView. I
thought "Well, I changed the data, that works, but the icon and Text needs
to change in the tree" Do I route this through my "Engine" class? Do I
expose a field for my TreeView? Do I add a reference to my Singleton
"Engine" class and get to everything there?

Just confusing and sloppy.

So like the subject says, I would really like to find a book(or article)
that lays out common, solid approaches to standard Winform applications.

If you have a suggestion, please do share :)

Thanks for reading my rant,
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.