private void toolStripMenuItem2_Click(object sender, EventArgs e) { Home_form home = new Home_form(); home.Show(); this.Hide(); }
private void btn_login_Click(object sender, EventArgs e) { string user = user_txt.Text; string password = pass_txt.Text; ToolTip toolTip1 = new ToolTip(); toolTip1.ShowAlways = true; toolTip1.SetToolTip(btn_login, "Press to Login."); if (user.Equals("user1") & password.Equals("pass1")) { lbl_message.Text = "Welcome to the system "; Home_form Home = new Home_form(); Home.Show(); this.Dispose(); } else { lbl_message.Text = "invalid username and password combination "; } }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { Home_form home= new Home_form(); home.Show(); this.Hide(); }