سلام
این
using System.Windows.Forms;
رو اول فورمت یا در بخش using اضافه کن
اینم خود کد
int r = comboBox.Items.Count;
ArrayList newList = newArrayList();
//Load all Items into temp array
string[] temp = newstring[r];
for (int i = 0; i < r; i++)
{
temp[i] = comboBox.Items[i].ToString();
}
//Add unique items to new ArrayList
foreach (string ts in temp)
{
if (!newList.Contains(ts))
{
newList.Add(ts);
}
}
comboBox.Items.Clear();
foreach (string ns in newList)
{
comboBox.Items.Add(ns.ToString());
}