private void mainAddButton_Click(object sender, EventArgs e) { // Create and event handler to refresh listview when AddForm closes. AddForm addForm = new AddForm(); addForm.FormClosed += new FormClosedEventHandler(addForm_FormClosed); addForm.ShowDialog(); }