Solved

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

Posted on 2004-09-26
1
9,975 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

792 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