private void btn_Login_Click(object sender, EventArgs e)
{
ManageMent.login_check(txtUserName.Text, txtPassword.Text);
if (ManageMent.Login_Check!=false)
{
Control_Center control_panel = new Control_Center();
control_panel.Show();
this.Hide();
}
}
im using these codes these codes behind my login button, but this leave the main login form hidden somewhere and when i m closing the control panel it ix still running behind, i want to close it immediately when the authentication is successful.. i tried this.Close(); but it restrict the control panel to open