private void button1_Click(object sender, EventArgs e) { if (listBox1.Items.Contains(textBox1.Text) == false) { listBox1.Items.Add(textBox1.Text); } else { MessageBox.Show("It's allrady in listbox"); //need to change font and bold that item in listbox //or add green dot to text in listbox } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)