D
Dennis
Good Day
I am working on a Windows program that uses three seperate forms.
[ frmMain, frmTwo, frmThree ]
frmMain receives input from the user and preforms the necessary calculations
It also stores the user's data and calculated values in a set of variables
within a
global class. That much seems to work fine.
However, when the user switches between frmMain and frmTwo [ or frmThree ]
and then goes back to frmMain, the textboxes are all empty. How can I make
the
switch without losing the textbox data ?
Here is the type of code within frmMain that actually switches to frmTwo:
private void mnuGoTofrmTwo_Click(object sender, System.EventArgs e)
{
frmTwo copyfrmTwo = new frmTwo();
copyfrmTwo.Show();
Hide(); // Hide frmMain
}
Here is the type of code within frmTwo that actually switches to frmMain:
private void mnuGoTofrmMin_Click(object sender, System.EventArgs e)
{
frmMain copyfrmMain = new frmMain();
copyfrmMain.Show();
Hide(); // Hide frmTwo
}
I am working on a Windows program that uses three seperate forms.
[ frmMain, frmTwo, frmThree ]
frmMain receives input from the user and preforms the necessary calculations
It also stores the user's data and calculated values in a set of variables
within a
global class. That much seems to work fine.
However, when the user switches between frmMain and frmTwo [ or frmThree ]
and then goes back to frmMain, the textboxes are all empty. How can I make
the
switch without losing the textbox data ?
Here is the type of code within frmMain that actually switches to frmTwo:
private void mnuGoTofrmTwo_Click(object sender, System.EventArgs e)
{
frmTwo copyfrmTwo = new frmTwo();
copyfrmTwo.Show();
Hide(); // Hide frmMain
}
Here is the type of code within frmTwo that actually switches to frmMain:
private void mnuGoTofrmMin_Click(object sender, System.EventArgs e)
{
frmMain copyfrmMain = new frmMain();
copyfrmMain.Show();
Hide(); // Hide frmTwo
}