How to clear the text in a dropdown list combo box?

95 pts.
Tags:
VB.NET
VB.NET 2005
When an item is selected from the list it displays in the text field of the combo box and I want to clear it without clearing the items in the list. I've tried [drop down list name].text = "" but it doesn't work since the text entering field in a drop down list box is read only. How should I do that. By the way, I'm coding in VB.NET 2005 so please give answers in VB.NET 2005.

Answer Wiki

Thanks. We'll let you know when a new response is added.

This should work:

<pre>ComboBox1.SelectedIndex = -1</pre>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: