0

In vb. Net application i have a combobox with properties- custome source autocomplete
Dropdownstyle- dropdown

I use string method to autocomplete combobox from custom source of database.

I want to cleat text from the combobox after save button event. I use following code for that but its not working.

Combobox.selectedindex=-1

2
Contributors
4
Replies
11
Views
2 Years
Discussion Span
Last Post by Satyam_1
0

On your post you said you want to "CLEAR" but your code selects the first Item in your ComboBox.

Try

 ComboBox1.Text = ""

Edited by Mr.M: Correcting the answer

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.