Ahh then you have to cast it to a combobox specifically:
VB Code:
Dim ComBox As Control For Each ComBox In Me.Controls If TypeOf ComBox Is ComboBox Then Try 'if not bound ComBox.Text = "" 'if bound DirectCast(ComBox, ComboBox).SelectedIndex = -1 Catch End Try End If Next




Reply With Quote