Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ListView Checkboxes remain gray when I enable the ListView

Posted on 2002-07-21
3
Medium Priority
?
512 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…
Suggested Courses

618 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