user765942 user765942 - 28 days ago 10
Vb.net Question

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

Answer

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

ComboBox1.SelectedValue = -1