private void listView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { if (MessageBox.Show("Do you really want to delete this report?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { // DELETE REPORT General.DeleteAttendanceSummaryReport(listView1.SelectedItems[0].SubItems[6].Text, databasePath); //REFRESH UpdateListview(); } } }