How to make transparency TreeView transparent?

im trying to put treeview on UserControl, and when I try to set TreeView back color to transparent, I got an error, is there any other way to do this?

thanks in advance,

Shahar.

+3
source share
2 answers

There is nothing transparent to the Windows TreeView control. But you can play with a method like OnPaint or OnPaintBackground. This link may help: http://msdn.microsoft.com/en-us/library/1e430ef4(vs.71).aspx#Y798

0
source

TreeViewDoes not support transparent background color. It is best to set the background color TreeViewas the parent container TreeView.

BackColorChanged UserControl TreeView bg TreeView .

    private void treeViewParent_BackColorChanged(object sender, EventArgs e)
    {
           treeView1.BackColor = treeViewParent.BackColor;
    }
-1

All Articles