private void btnLogin_Click(object sender, EventArgs e) { if(tbUsername.Text=="123" && tbPasword.Text=="123") { frmDashBoard db = new frmDashBoard(); db.Show(); this.Hide(); } else { MessageBox.Show("Incorrect Password"); } }
private void btndashboard_Click(object sender, EventArgs e) { this.Hide(); frmDashBoard fd = new frmDashBoard(); fd.Show(); }