[RESOLVED] I need help refreshing the data from a Combobox
Hello everyone:
I am new in programming, and I have a situation with a combo box.
I have an "Add new Record" form where I have multiple combo boxes. I have two sites where they may have the same with the same name, I have written a code that would filter the name base on the site, and these are two radio buttons.
The filtering is working great. The problem that I am having is that when I load the form an click on radio button #1, it filters the names just fine base on the site, but while I am in the form if I change my mind and select radio button #2 instead, it doesn't clear the data that was populated from radio button #1., I have to unload the form to be able to clear the data.
Thanks,
Re: I need help refreshing the data from a Combobox
All you need to do is to clear the combobox
vb Code:
Private Sub ComboBox_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox.LostFocus
ComboBox.Items.Clear()
End Sub
Re: I need help refreshing the data from a Combobox
Hello Clanguage:
I wanted to thank you for your quick response
Re: I need help refreshing the data from a Combobox
You're very welcomed.
Mark the thread as resolved under the Thread tools at the top.