How to get Windows native look for the .NET TreeView?
You need to P/Invoke to call SetWindowTheme passing the window handle of the tree and use “explorer” as the theme. Paste the following code into a new class in your project, compile, and use this custom control instead of the built-in TreeView control. C#: public class NativeTreeView : System.Windows.Forms.TreeView { [DllImport(“uxtheme.dll”, CharSet = CharSet.Unicode)] private … Read more