private void button1_Click(object sender, EventArgs e)
        {
            this.AcceptButton = loginButton;
            i = 0;
            xconn.Open();
            MySqlCommand cmd = new MySqlCommand();

            cmd.CommandText = "select * from login where USERNAME='******'and PASS='******'";
            cmd.Connection  = xconn;
            cmd.ExecuteNonQuery();
            DataTable        dt = new DataTable();
            MySqlDataAdapter da = new MySqlDataAdapter(cmd);

            da.Fill(dt);
            i            = Convert.ToInt32(dt.Rows.Count.ToString());
            unbox.Text   = null;
            passbox.Text = null;

            if (i == 0)
            {
                MessageBox.Show("Invalid username or password");
            }
            else
            {
                this.Hide();
                choiceForm fm = new choiceForm();
                fm.Show();
            }

            xconn.Close();
        }
        private void backButton_Click(object sender, EventArgs e)
        {
            this.Hide();

            choiceForm fm = new choiceForm();

            fm.Show();
        }