Solved

ListView Checkboxes remain gray when I enable the ListView

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

765 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