Exemple #1
0
        private void btn_GoBack_Click(object sender, EventArgs e)
        {
            frm_Add_Student_Information ASobj = new frm_Add_Student_Information();

            ASobj.Show();
            this.Hide();
        }
 private void btn_Sumit_Click(object sender, EventArgs e)
 {
     if (tb_UserName.Text == "a" && tb_Password.Text == "a")
     {
         MessageBox.Show("Login Successfull....!!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
         frm_Add_Student_Information ASobj = new frm_Add_Student_Information();
         ASobj.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Invalid UserName or Password..!!", "Failure", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }