Windows 7 style treeview in Windows Forms [duplicate]

不想你离开。 提交于 2019-12-04 05:22:10

问题


Possible Duplicate:
How to get Windows native look for the .NET TreeView?

I'm wondering if it is possible to style my Windows Forms treeview using the Vista / Windows 7 style when available. If it is running in older versions of windows then I would expect the regular treeview style to be used.

Is this possible using a manifest or will it require more detailed customization or the use of a third party control?

Thanks, Alan


回答1:


Use SetWindowTheme:

SetWindowTheme(treeView.Handle, "EXPLORER", NULL);


来源:https://stackoverflow.com/questions/5408163/windows-7-style-treeview-in-windows-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!