private void pictureBox2_Click(object sender, EventArgs e)
        {
            MAINFORM m = new MAINFORM();

            this.Hide();
            m.ShowDialog();
        }
        private void login(String username, String password)
        {
            sql     = "SELECT  * FROM tbadmin WHERE username like '" + username + "' AND password = '******'";
            sql_cmd = new MySqlCommand(sql, clsMySQL.sql_con);
            MySqlDataReader rd = sql_cmd.ExecuteReader();

            while (rd.Read())
            {
                usern = rd["username"].ToString();
                pass  = rd["password"].ToString();
            }
            rd.Close();

            if (username == usern && password == pass)
            {
                MessageBox.Show("Admin have successfully logged in");
                MAINFORM m = new MAINFORM();
                this.Hide();
                m.ShowDialog();
            }
            else if (username == "Enter Username:"******"Enter Password:"******"Please fill up all the requirements", "Fill up", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                MessageBox.Show("Invalid Username or Password", "Invalid", MessageBoxButtons.OK, MessageBoxIcon.Error);
                textBox2.Text = "";
            }
        }
        private void label34_Click(object sender, EventArgs e)
        {
            MAINFORM m = new MAINFORM();

            this.Hide();
            m.ShowDialog();
        }