1

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

Community
  • 1
  • 1
Alan Spark
  • 8,152
  • 8
  • 56
  • 91

1 Answers1

5

Use SetWindowTheme:

SetWindowTheme(treeView.Handle, "EXPLORER", NULL);
stuartd
  • 70,509
  • 14
  • 132
  • 163