How to set the background image of a TreeView Control? (VS 2008/.Net 3.5/C#/WinForms)?

If you're willing to use a third-party library take a look at http://objectlistview.sourceforge.net/cs/index.html - note however that it's GPL. It's easy to set the background images there.

This is possible by overriding WndProc() and catch the WM_ERASEBKGND message. The control shown below does this. You will however quickly find out why the Windows Forms TreeView class doesn't do this.

With the "smooth scrolling" system option turned on, you get very ugly artifacts. Not mentioning the lack of node text transparency. No, there's no fix for that, only a complete replacement of the control that doesn't depend on the native Windows control can solve this problem.

Not something you should normally consider, unless it is from a very reputable component vendor.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions