Solved

Listbox with '1-checkbox' option... vb6

Posted on 2004-09-26
1
9,951 Views
Last Modified: 2012-08-13
List1.ListIndex = -1     '<-- takes away the highlight from current selection (leaving its checked unchecked)
List1.<I need code to uncheck the selection as well>    '<-- there will be one selection

List1.Selected(2) = True   '<-- works fine, highlights and checks its checkbox

----------
Question:  How can I get rid of the check for the old item.

Thanks.
0
Comment
Question by:Mike Eghtebas
1 Comment
 
LVL 11

Accepted Solution

by:
bingie earned 250 total points
ID: 12155877
List1.Selected(index) = False

Will uncheck the old item, when you provide the correct index
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

863 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

23 Experts available now in Live!

Get 1:1 Help Now