Remove duplicates in comboBox
<p>I have to remove duplicates in a combobox.</p>

<pre><code>private void cbnama_Click(object sender, EventArgs e)
{
    List&lt;string&gt;[] list;
    list = mDatabase.Viewpengujian();

    cbnama.Items.Clear();
    for (int i = 0; i &lt; list[0].Count; i++)
    {
            cbnama.Items.Add(list[0][i]);
    }
}
</code></pre>

<p><strong>Example:</strong></p>

<pre><code>test1
test2
test2
test3
test3
</code></pre>
