问题
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