Solved

ListView Checkboxes remain gray when I enable the ListView

Posted on 2002-07-21
3
503 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

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

760 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

21 Experts available now in Live!

Get 1:1 Help Now