Hi friends
I want to refresh my combo box .
i have even used the combobox.refresh() syntax but it does nothing!
need help

combobox.items.clear()

combobox.SelectedIndex = -1

Hi,

If your combobox is set with the "DropDownList", then
use Combobox1.SelectedIndex = -1

I've experimenting, but it did not work

Please start a new thread and post the code that doesn't work so that we can offer suggestions.

ComboBox.Items.Clear()

try this
ComboBoxguest.Items.Clear()
then load your combobox again
ext
ComboBoxguest.Items.Clear() 'clear combobox
guest()'i load again combobox from this methode

Try: .refresh(), then .items.clear(), then invalidate()

Hi,

If your combobox is set with the "DropDownList", then
use Combobox1.SelectedIndex = -1

try combobox1.text = ""
it works for me.

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.