private void tsbtnCreateTab_Click(object sender, System.EventArgs e) { if (tscbUserControls.SelectedItem != null) { string controlName = tscbUserControls.SelectedItem as string; DBControl dbctrl = UserControls.Find(x => x.Name.Equals(controlName)); if (dbctrl != null) { AddControl(dbctrl); } } }