Clearing out a ComboBox

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

Why is it that I cannot seem to figure out how to clear a combobox out. Am
I an idiot, or is it harder than I thought it could be? I need to retain
all the items, just clear the text area out when users open the form up
again.

I've tried:

this.cmbInches.Text = "";

and:

this.cmbInches.Items.IndexOf(0);

and neither seem to work. Can anyone give me the simple solution that I
must be overlooking?

Thanks
 
And if it is bound to a datasource - set it to -1 twice (bug)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top