• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1488
  • Last Modified:

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
0
merlin007
Asked:
merlin007
  • 2
1 Solution
 
TimCotteeHead of Software ServicesCommented:
Use

Combo1.RemoveItem Combo1.ListIndex

0
 
UncleMattCommented:
try cbowhatever.listindex = -1

Matt.
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.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now