本文介绍了如何设置一个TreeView控件的背景图片? (VS 2008 / .NET 3.5 / C#/的WinForms)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在做一些研究,这似乎除非我开始挖掘到InterOperabilty,即PInvoke的,而不是他是不是真的我的水壶鱼是不可能的。我重新张贴了这个问题,因为我想知道是否有人已经成功地做​​到这一点了吗?

I have been doing some research and this seems to be not possible unless I start digging into InterOperabilty, i.e PInvoke and what not which is not really my kettle fish. I am re posting this question as I want to know if anyone has managed to do this yet?

我使用png格式为我所有的图像,并获得专业为我的图片,所以我知道的图像来提供最优质最合适的格式。

I use .png for all my images and get a professional to provide my images so I know the images come with the best quality most appropriate formats.

这似乎标准树视图控件不支持的背景图像直接在这样的它也没有允许其背景色设置为透明?任何人有什么想法就这两个?

It seems the standard tree view control does not support a background image directly a such neither does it allow its background colour to be set to transparent? Anyone got any ideas on these two?

推荐答案

如果你愿意使用第三方库看看的 - 但是请注意,它的GPL。这很容易设置背景图片在那里。

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.

这篇关于如何设置一个TreeView控件的背景图片? (VS 2008 / .NET 3.5 / C#/的WinForms)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 21:17