private void FormAutoNoteControlEdit_Load(object sender, EventArgs e) { string controlOptions; if (!IsNew) { string ControlOptions; comboBoxControlType.SelectedItem = ControlCur.ControlType; textBoxControlDescript.Text = ControlCur.Descript; textBoxControlLabel.Text = ControlCur.ControlLabel; textBoxTextPreface.Text = ControlCur.PrefaceText; textBoxMultiLineText.Text = ControlCur.MultiLineText; ControlOptions = ControlCur.ControlOptions; string[] lines = ControlOptions.Split(new char[] { ',' }); for (int i = 0; i < lines.Length; i++) { if (lines[i].ToString() != "") { listBoxControlOptions.Items.Add(lines[i].ToString()); } } } }