?
Solved

ListView Checkboxes remain gray when I enable the ListView

Posted on 2002-07-21
3
Medium Priority
?
511 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses
Course of the Month7 days, 22 hours left to enroll

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