Setting back color in MSComctlLib.TreeCtrl.2 control using VB for MS Access

Hi there,

I would like to set the background color of a treeview control to another default windows color other than the 'white window'.

Say I want to use the constant vbActiveBorder. Now the ImageList control allows for the setting of these values via properties, but the Treeview control does not.

How do I go about setting the back color of the treeview control

For info I have already set up the icons etc with a magenta mask, so that they will be transparent etc.

Thanks in advance



Answer this question

Setting back color in MSComctlLib.TreeCtrl.2 control using VB for MS Access

  • Duncan Woods

    You can't do that directly via VB. You have to use Win32 API. For more information regarding this issue, please look into the information regarding SendMessageA() function on the web.



  • Setting back color in MSComctlLib.TreeCtrl.2 control using VB for MS Access