private void DeleteDetectorButton_Click(object sender, EventArgs e) { IDDDetectorDelete f = new IDDDetectorDelete(); if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) { // a sad detector has been turfed! } }