Example #1
0
        private void label1_Click(object sender, EventArgs e)
        {
            FormCRUD f4 = new FormCRUD();

            f4.Show();
            this.Hide();
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            con.Close();
            con.Dispose();
            this.Hide();
            FormCRUD back = new FormCRUD();

            back.ShowDialog();
        }
Example #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            con.Open();
            String       printah = "DELETE FROM menu WHERE NAMABARANG='" + txtbarang.Text + "'";
            OleDbCommand cmd     = new OleDbCommand(printah, con);

            cmd.ExecuteNonQuery();
            con.Close();
            MessageBox.Show("Data Berhasil Dihapus");

            //back to FromCRUD
            con.Dispose();
            this.Hide();
            FormCRUD book = new FormCRUD();

            book.ShowDialog();
        }