private void okButton_Click(object sender, EventArgs e) { DashBoard d = new DashBoard(); d.Show(); this.Hide(); }
private void SubmitBtn_Click(object sender, EventArgs e) { DashBoard d = new DashBoard(); if (UserNameTxt.Text == "Admin" && PasswordTxt.Text == "Admin") { d.UserName = UserNameTxt.Text; d.Show(); this.Hide(); } else { MessageBox.Show("Invalid User!!!!!!!!"); } }