for(int i = 0; i < ListBox1.Items.Count ; i++)
{
for(int j = i + 1; j < ListBox1.Items.Count; j++)
{
if (ListBox1.Items[i].Text == ListBox1.Items[j].Text)
{
ListBox1.Items.Remove(ListBox1.Items[j]);
}
}
}