You could also use this as an extension and then for any control that has an explorer-style view call object.SetExplorerTheme();
e.g.:
Code:
TreeView tv = new TreeView();
tv.SetExplorerTheme();
Code:
[DllImport("uxtheme.dll", ExactSpelling = true, CharSet = CharSet.Unicode)]
private static extern int SetWindowTheme(IntPtr hwnd, string pszSubAppName, string pszSubIdList);
public static void SetExplorerTheme(this Control c)
{
SetWindowTheme(c.Handle, "Explorer", null);
}