private void pictureBox3_Click(object sender, EventArgs e) { this.Hide(); Seniorman_page sp = new Seniorman_page(); sp.Show(); }
private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e) { this.Hide(); Seniorman_page spf = new Seniorman_page(); spf.Show(); }
private void label3_Click(object sender, EventArgs e) { SqlDataAdapter sda = new SqlDataAdapter("select Count(*) From SeniorManagement where UserName = '******' and _Password = '******'", con); DataTable dt = new DataTable(); sda.Fill(dt); if (dt.Rows[0][0].ToString() == "1") { MessageBox.Show("You have Successfully Login!, Welcome ", "Message", MessageBoxButtons.OK, MessageBoxIcon.None); this.Close(); Seniorman_page spf = new Seniorman_page(); spf.Show(); } else { MessageBox.Show("Please Check Your Username and Password", "Message", MessageBoxButtons.OK, MessageBoxIcon.Error); } }