often we delete items and we want a dialog box to pop, a simple way is
private void button1_Click(object sender, EventArgs e)
{
if (MessageBox.Show("Are you sure??", "Confirm delete", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
MessageBox.Show("deleted");
}
}