Clearing a combo box

I want to reset the selected item in a combo box. I am letting the user select an item then this item is written to a DB and the combo reset. I am using VB6 and the style of the combo is 2 - drop down list

Thanks

merlin007
merlin007Asked:
Who is Participating?
 
UncleMattCommented:
try cbowhatever.listindex = -1

Matt.
0
 
TimCotteeHead of Software ServicesCommented:
Use

Combo1.RemoveItem Combo1.ListIndex

0
 
merlin007Author Commented:
Thanks Uncle Matt
TimCoffee - the RemoveItem take the selection from the list completely. I probably did not explain the question properly, Thanks

Regards

Merlin007
0
 
TimCotteeHead of Software ServicesCommented:
You probably did merlin, I just misinterpreted it. Anyway you got a good answer from UncleMatt.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.