We help IT Professionals succeed at work.
Get Started

Preserve the state of multiple forms

Terrygordon
Terrygordon asked
on
319 Views
Last Modified: 2012-05-11
Hi all

I am designing an application where the user can enter information on different forms that are accessed from a main window. Each form contains a combination of text boxes, radio buttons, etc.

The problem I am having is that if the user closes the form (using the standard X button at the top of the form) and then loads it again from the main window, the form returns to its default values and doesn't save the values that the user entered.

I did consider using tabs instead of separate forms, but there will be situations where the user will want to compare the entries on several forms simultaneously.

So, is it possible (without having to write code to store all the variables and reload them) to save the state of the form when it has been closed and reproduce the user's entries when it is opened again?

P.s. I am quite new to visual studio programming.

Thanks in advance.

Terry
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2014
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE