I am adding items to combo box using comboBox.Items.Add(entry);. But how can I avoid duplicate entries (i.e same name entries) in combobox. Is there any lib fun
comboBox.Items.Add(entry);
Check for the item before adding:
if (!comboBox.Items.Contains(entry)) comboBox.Items.Add(entry);