private void button1_Click(object sender, EventArgs e)
        {
            FormMaster objFormMaster = new FormMaster();

            this.Hide();
            objFormMaster.Show();
        }
        private void btnOK_Click(object sender, EventArgs e)
        {
            connDb.koneksi();

            try
            {
                string username = txtUsername.Text.Trim();
                string password = txtPassword.Text.Trim();

                string sql = "SELECT * FROM TUser WHERE nama_user='******' and password='******'";
                cmd    = new SqlCommand(sql, connDb.conn);
                reader = cmd.ExecuteReader();

                if (reader.Read())
                {
                    FormMaster objFormMaster = new FormMaster();
                    this.Hide();
                    objFormMaster.Show();
                }
                else
                {
                    MessageBox.Show("Username dan Password Salah !!!");
                }
            }
            finally
            {
                if (reader != null)
                {
                    reader.Close();
                }
            }
        }