Solved

TreeView Background Color - How to set?

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
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.
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…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now