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

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

Try

 ComboBox1.Text = ""

Its working thanks

If your question has been answered you can mark it as solved.

Sure.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.