The Problem i am facing now is that i created a Basic Login form and hided the form if the ID and Password are correct
and showed the main control panel.
But when i close that control panel the process didn't ended so i showed the Login form but it doesn't show the same instance of the form that i hided before..
so how am i supposed to show the previously hidden Instance of Login Form From my Main Form.?
Code for Login Form
MessageBox.Show("Valid","Message");
frmMain form = new frmMain();
form.User = User1;
form.Show();
this.Hide();
Code for Main Form
private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
{
frmLogin form = new frmLogin();
form.Show();
}

New Topic/Question
Reply




MultiQuote





|