Re: How to Store state of controls on a Form?
From: CodeMonkey (agaskelluk_at_yahoo.com)
Date: 02/03/05
- Next message: Joep: "Re: Clearing memory when closing a windows form"
- Previous message: rainwood: "TAB-key trouble"
- In reply to: Chris Dunaway: "Re: How to Store state of controls on a Form?"
- Messages sorted by: [ date ] [ thread ]
Date: 3 Feb 2005 02:36:37 -0800
Thanks Chris.
Chris Dunaway wrote:
> The best solution is to create a class that holds all the data that
> needs to be displayed. When a form is opened, it should populate its
> fields with the values of the properties of the class.
>
> The form should not be used to store the data. It's sole purpose
> should be to display the data. The data should be stored in a class
or
> other storage medium such as a file.
>
> Look for the Model View Controller design pattern and it will give
you
> further details.
- Next message: Joep: "Re: Clearing memory when closing a windows form"
- Previous message: rainwood: "TAB-key trouble"
- In reply to: Chris Dunaway: "Re: How to Store state of controls on a Form?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|