Esempio n. 1
0
        private void label33_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form15 f3 = new Form15();

            f3.Show();
        }
Esempio n. 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            button2.Visible = false;;
            Form1 conn = new Form1();

            conn.sqlC1.Open();//userid,pass
            SqlCommand    cmd = new SqlCommand("Select *from Admin where id = '" + textBox1.Text + "' and pass ='******'", conn.sqlC1);
            SqlDataReader dr  = cmd.ExecuteReader();

            if (dr.Read())
            {
                MessageBox.Show("WELCOME TO AGA KHAN UNIVERSITY HOSPITAL ", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.Hide();
                Form15 f3 = new Form15();
                f3.Show();
                //panel5.Visible = false;
                //panel6.Visible = false;
                //panel3.Visible = false;
                //panel1.Enabled = true;
                //pictureBox1.Enabled = true;
                //pictureBox2.Enabled = true;
                //pictureBox3.Enabled = true;
                //pictureBox4.Enabled = true;
                //pictureBox5.Enabled = true;
                //menuStrip1.Enabled = true;
            }
            else if (textBox1.Text == "" & textBox2.Text == "")
            {
                MessageBox.Show("PLEASE ENTER LOGINID AND PASSWORD");
            }
            else
            {
                MessageBox.Show("PASSWORD IS NOT CORRECT");
            }
            conn.sqlC1.Close();
        }