Solved

TreeView Background Color - How to set?

Posted on 1998-06-30
1
308 Views
Last Modified: 2012-08-14
I'm using the MS TreeView control in an Access database. I'd like to be able to set the background color to something other than white.  The treeview object doesn't seem to support the Backcolor property.  Is there another way?
0
Comment
Question by:PinnaclePr
1 Comment
 
LVL 4

Accepted Solution

by:
yowkee earned 150 total points
ID: 1464642
PinnaclePr,

  Take a look at this page:
http://www.mvps.org/vbnet/code/comctl/tveffects.htm

  Basically you could set treeview background color by sending message TVM_SETBKCOLOR to treeview Control (TVM_SETBKCOLOR=&H1129).

  The above link work well in VB. I didn't test in Access but I think it work as well.

  Regards.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 59
Best way to parse out a json string in VB6? 10 217
Spell Check in VB6 13 126
VBA: loop recent folder and copy txt file. 8 33
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

789 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