private void butDelBrg_Click(object sender, EventArgs e) { Barang brg = new Barang(); brg.setidBrg(int.Parse(idBrg.Text)); brg.DeleteBrg(); MessageBox.Show("1 Record Succesfully Deleted"); idBrg.Clear(); }