public Form3() { tags = classifierProvider.GetTags(""); InitializeComponent(); listBox1.Items.Clear(); listBox1.Items.AddRange(tags); }
private void textBox2_Enter(object sender, EventArgs e) { // autocomplete while typing tags AutoCompleteStringCollection data = new AutoCompleteStringCollection(); data.AddRange(classifierProvider.GetTags("").AsParallel().Select(x => x.name).ToArray()); textBox2.AutoCompleteCustomSource = data; }