Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to deselect a ComboBox in VB6

Posted on 2013-05-14
1
447 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 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 39165702
Combo1.ListIndex = -1
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to read File Date Created using VB6 8 51
RUNRMTCMD from AS/400 12 68
VB.NET 2008 - SQL Timeout 9 34
vb.net and creating a class 5 20
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 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