A C# program that I am currently working on contains about 100
textBoxes, 5 pictureBoxes, 20+ radioButtons ect.
Concern / Question 1 (Save File)
In the past when writing code to save the currently opened file, I would
create about 125+ variables to save the text, images and radioButton
checkstate to disk. These same variables would be used to load
everything back into their correct control when the file was re-opened.
Does anyone know if there is a faster / better way to accomplish the
same thing ?
Concern / Question 2 (Close File)
When a user clicks on the 'Close File' menu option in the above program,
code is used to clear / re-set all user data from the controls. The
user's screen looks the same as when it was first opened... but, all the
program variables used to store data and perform the necessary
calculations still contain their data. How can I clear them or at least
make sure that they do not cause problems when the user begins to enter
new data and tries t o perform a new set of calculations.
Any help would be appreciated.
bernden
*** Sent via Developersdex http://www.developersdex.com ***