private void Main_Load(object sender, EventArgs e) { login login = new Login(); login.MdiParent = this; login.Show(); }
private void LogBtn_Click(object sender, EventArgs e) { //Login logic here. int count = ds.Tables[0].Rows.Count; if (count == 0) { MessageBox.Show("Invalid password or Username", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { Main main = new Main(); main.Show(); }
this.Hide(); Main main = new Main(); main.Show();
Thanks Madhu for replying but i am still facing the same. I have inserted below code. <pre lang="c#"> else { Login login = new Login(); login.Hide(); Main main = new Main(); main.Show(); } </pre> anything else we can do this to resolve this..??
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)