private void btnlogin_Click(object sender, EventArgs e)
        {
            string username = txtuname.Text.Trim();
            string password = txtpass.Text.Trim();
            string acctype  = comacctype.Text.Trim();


            CreateUsers createUsers = new CreateUsers(username, password, acctype);

            CreateUsersDBOpe cubo = new CreateUsersDBOpe();

            cubo.RegUser(createUsers);

            MessageBox.Show("Successfully Created a Account", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
        public void RegUser(CreateUsers createUsers)
        {
            try
            {
                string username  = createUsers.getusername();
                string password  = createUsers.getpassword();
                string accoutype = createUsers.getacctype();


                conn.Open();

                SqlCommand cmd = new SqlCommand("Insert into UserAcc values ('" + username + "', '" + password + "', '" + accoutype + "')", conn);
                cmd.ExecuteNonQuery();

                conn.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }