I have some combo-boxes that are set up as drop down lists, and the user can pick a number in them. I also have a Clear button that should clear the text from the combo boxe
Answer for your question is:
metroComboBox1.SelectedItem = null;
anycomboBox1.SelectedItem=null;
In WPF You can try this code
cbHours.Items.Clear();
If you have applied datasource to combobox, then it will not be cleared as cmb.Items.Clear()
.
For that you have to assign datasource null
to combobox.
cmb.DataSource = null;
cmb.Items.Clear();
Did you try cboxHour.Items.Clear()
?