ja das geht, mal ein beispiel
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices; //benötigt
namespace TreeTest
{
public partial class Form1 : Form
{
[DllImport("uxtheme.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
private static extern int SetWindowTheme(IntPtr hWnd, string appName, string partList);
public Form1()
{
InitializeComponent();
SetWindowTheme(treeView1.Handle, "explorer", null);
SetWindowTheme(listView1.Handle, "explorer", null);
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}