?
Solved

treeview selected item with hideselection = false defaults to form backcolor

Posted on 2007-07-20
3
Medium Priority
?
1,714 Views
Last Modified: 2013-12-26
I am using a TreeView control in a Visual Basic 6.0 program.  I set the   Treeview.HideSelection = False
This will keep my treeview selection highlighted when I click into a text box control or any other control on the form.  The problem is the background color of the treeview selection is the same color as the form background color.  Is there a way to set the background color for the selected treeview item different than the form background color?
0
Comment
Question by:DenverDan
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Purple_Tidder earned 500 total points
ID: 19538101
This was the most complete information I could find.

http://vbnet.mvps.org/index.html?code/comctl/tveffects.htm
0
 
LVL 10

Expert Comment

by:Purple_Tidder
ID: 19538113
It seems though that in my testing, once the focus is removed trom the treeview, the background color reverts to the form background color.  I did not have much time to test, and may have overlooked something.  
0
 
LVL 1

Author Comment

by:DenverDan
ID: 19547243
Thanks,
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
MS Outlook undoubtedly is the most widely used email client.Its user-friendliness, cost effectiveness, and availability with Microsoft Office Suite make it the most popular email application.  Its compatibility with Microsoft applications like Exch…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

621 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