Search code examples
vb.netwinformscomboboxselectedindex

Setting first field in a combo box to null


I have a databound ComboBox on my form. Is there any way that I can make the first field blank.

I can do this with a DropDownList in the HTML part of .Net but is there a way to do it for a ComboBox?

Thanks


Solution

  • This is the code I used to overcome the problem...

    ComboBox1.SelectedValue = -1