user765942 user765942 - 1 year ago 109 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?


Answer Source

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

ComboBox1.SelectedValue = -1

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download