private void btnAddExcludedPath_Click(object sender, EventArgs e) { ExcludedPathForm dlg = new ExcludedPathForm(); DialogResult dr = dlg.ShowDialog(this); if (dr == DialogResult.OK) { this.lbExcludedPath.Items.Add(dlg.ExcludedPath); } }