private void button1_Click(object sender, EventArgs e)
        {
            string[] lines = System.IO.File.ReadAllLines(@"c:\password.txt");

               //MessageBox .Show(lines[0]+lines[1]+lines[2]);

            if (uname.Text.Equals(lines [0])  && pass.Text.Equals(lines[0] ))
            {
               patient_LCH  pat = new patient_LCH ();
                pat.Show();
                this.Close();

            }
            else if (uname.Text.Equals(lines [1])  && pass.Text.Equals(lines[1] ))
            {
               search_LCH   src=new search_LCH  ();
                src.Show();
                this.Close();

            }
            else if (uname.Text.Equals(lines[2]) && pass.Text.Equals(lines[2]))
            {
                option_LCH  opn= new option_LCH ();
                opn.Show();
                this.Close();

            }
            else
            {
                MessageBox.Show("PLEASE CHECK USERNAME AND PASSWORD!!!", "LIFECARE");

            }
        }
 private void test_LCH_Load(object sender, EventArgs e)
 {
     search_LCH sr = new search_LCH();
     pno.Text = Convert.ToString(search_LCH.pser.patientNo);
 }