private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "admin" && textBox2.Text == "1234")
     {
         MessageBox.Show("Login successful. Welcome!!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
         EnterPageForm form = new EnterPageForm();
         this.Hide();
         form.ShowDialog();
     }
     else if (textBox1.Text == "" && textBox2.Text == "")
     {
         MessageBox.Show("Username and Password are not entered", "Alert", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
     }
     else if (textBox1.Text == "")
     {
         MessageBox.Show("Please Enter your Username!", "Alert", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
     }
     else if (textBox2.Text == "")
     {
         MessageBox.Show("Please Enter your Password!", "Alert", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
     }
     else if (textBox1.Text != "admin")
     {
         MessageBox.Show("Username is wrong!", "Alert", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
     }
     else if (textBox2.Text != "1234")
     {
         MessageBox.Show("Password is wrong!", "Alert", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
     }
 }
        private void Billing_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            EnterPageForm form = new EnterPageForm();

            form.Show();
        }