Set a combo box to spaces

SteveInBeloit

Well-known member
Joined
May 22, 2006
Messages
132
Programming Experience
10+
I have a combo box that I fill from a stored procedure in code. In the form_load, I fill it, and then set Me.mycbobox.text = ""

It shows up fine on the form, and then they select a value from the drop down list, and hit process.

then I want to display the combo box again for the next user being spaces again. but me.mycbobox.text = "" doesn't get it now, it stays with the value the first user typed in.
I have a feeling it is because it is of type dropdownlist, and spaces isn't in the list.

Anyway to get around this?
 
Im not realy sure what you are asking (I find things hard to understand), but would it be something like this: when another item in the dropdownlist is selected, the combobox changes its current value?

Think you would have to doubleclick the dropdownbox so you get the SUB for SelectedIndexChanged, and inside there, you write:

VB.NET:
Me.mycbobox.text = ""
 
Back
Top