user765942 user765942 - 1 year ago 82
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 Source

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

ComboBox1.SelectedValue = -1