Solved

TreeView Background Color - How to set?

Posted on 1998-06-30
1
306 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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.
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…

831 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