//controls the appearance of the listbox private void appearanceOfListBox() { listBox1.Items.Clear(); ListBoxContent objectListBoxContent = new ListBoxContent(); string[] s = textBox1.Text.Split(' '); // holds all the words in the textbox List <string> listOfIntellisenseStrings = objectListBoxContent.addItemToListBox(s[s.Length - 1]); for (int i = 0; i < listOfIntellisenseStrings.Count; i++) { listBox1.Items.Add(listOfIntellisenseStrings[i]); } }
private void appearanceOfListBox() { this.listBox1.Items.Clear(); ListBoxContent objectListBoxContent = new ListBoxContent(); string[] s = this.textBox1.Text.Split(new char[] { ' ' }); List <string> listOfIntellisenseStrings = objectListBoxContent.addItemToListBox(s[s.Length - 1]); for (int i = 0; i < listOfIntellisenseStrings.Count; i++) { this.listBox1.Items.Add(listOfIntellisenseStrings[i]); } }