private void btn_Login_Click(object sender, EventArgs e) { if (txt_Username.Text == "" && txt_password.Text == "") { lblUserName.Text = "Please Enter UserName!"; lblPassword.Text = "Please Enter Password!"; } else if (txt_Username.Text == "Admin" && txt_password.Text == "123") { FinalYearProject_Managment fyp = new FinalYearProject_Managment(); this.Hide(); fyp.Show(); } else { if (txt_Username.Text != "Admin") { lblUserName.Text = "UserName is Incorrect!"; txt_Username.Text = ""; } if (txt_password.Text != "123") { lblPassword.Text = "Password is Incorrect!"; txt_password.Text = ""; } } }
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FinalYearProject_Managment fyp = new FinalYearProject_Managment(); this.Hide(); fyp.Show(); }
private void button3_Click(object sender, EventArgs e) { FinalYearProject_Managment fyp = new FinalYearProject_Managment(); this.Hide(); fyp.Show(); }