Solved

How to deselect a ComboBox in VB6

Posted on 2013-05-14
1
436 Views
Last Modified: 2013-05-14
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
Comment
Question by:mainrotor
1 Comment
 
LVL 45

Accepted Solution

by:
Martin Liss earned 500 total points
Comment Utility
Combo1.ListIndex = -1
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Excel - Save a copy of work book 13 79
Total in textboxes 9 35
Check if number is currency 15 29
Get String split 5 31
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now