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

How to deselect a ComboBox in VB6

Hi Experts,
I use a combobox control in my VB6 application.  I also have a button labelled RESET that when clicked resets the form.  I want to know how to deselect the selected value in my combobox. Most websites suggest the following ComboBox1.Clear, but that clears all possible values.  How can I deselect the combobox without losing the possible values?

Thanks in advance
mrotor
0
mainrotor
Asked:
mainrotor
1 Solution
 
Martin LissRetired ProgrammerCommented:
Combo1.ListIndex = -1
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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