Solved

ListView Checkboxes remain gray when I enable the ListView

Posted on 2002-07-21
3
504 Views
Last Modified: 2012-05-04
I have 2 option controls, Yes & No.  When the user clicks Yes I disable a ListView and set the backcolor to vb3DFace, which is gray.

With lvwWiz(Ctrls.lvwReports)
    .Enabled = False
    .BackColor = vb3DFace
End With

When the user clicks the No option, enable the ListView and change the BackColor to White.

With lvwWiz(Ctrls.lvwReports)
    .Enabled = True
    .BackColor = vbWindowBackground
End With

This procedure works but it leaves the CheckBoxes in the ListView gray.  The rest of the ListView is white, like it should be when setting it to vbWindowBackground.  If I take out the enable code from both procedures the checkboxes return to white.

I need to figure out how get the checkboxes to white as well.  Wouldn't think this would be hard?

Jefferson
0
Comment
Question by:jbauer22
3 Comments
 
LVL 2

Author Comment

by:jbauer22
ID: 7167998
I'm not sure how to delete this question but I was able to over come the problem by setting doing the following.

lvwWiz(Ctrls.lvwReports).Enabled = True
lvwWiz(Ctrls.lvwReports).CheckBoxes = True
lvwWiz(Ctrls.lvwReports).BackColor = vbWindowBackground
0
 
LVL 4

Expert Comment

by:Glowman
ID: 7169425
Try setting the CheckBoxes property to True  ;)
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7215939
Points refunded and question closed.

Netminder
CS Moderator
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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…

920 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

16 Experts available now in Live!

Get 1:1 Help Now