private void lstWeatherItemNames_DoubleClick(object sender, System.EventArgs e) { //set the dialog results to OK this.DialogResult = DialogResult.OK; //select the items which the user double-clicked SelectWeatherItems(); }