private void newEventButton_Click(object sender, EventArgs e) { if (personListBox.SelectedItem != null) { NewEvent test = new NewEvent(((Address)addressListBox.SelectedItem).name, ((Person)personListBox.SelectedItem).ToString()); test.Owner = this; test.Show(); } }