private void button2_Click(object sender, EventArgs e) { FormSupplier fs = new FormSupplier(); fs.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { con.Open(); String printah = "DELETE FROM supplier WHERE nama='" + textBox1.Text + "'"; OleDbCommand cmd = new OleDbCommand(printah, con); cmd.ExecuteNonQuery(); con.Close(); MessageBox.Show("Data Berhasil Dihapus"); //back to FromCRUD con.Dispose(); this.Hide(); FormSupplier book = new FormSupplier(); book.ShowDialog(); }