Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Data;
- using System.Diagnostics;
- using System.Runtime.InteropServices;
- using Microsoft.VisualBasic;
- using System.Windows.Forms;
- public class AeroListView : ListView
- {
- [DllImport("uxtheme", CharSet = CharSet.Unicode)]
- public static extern int SetWindowTheme(IntPtr hWnd, string textSubAppName, string textSubIdList);
- public AeroListView()
- {
- HandleCreated += AreoListView_HandleCreated;
- this.DoubleBuffered = true;
- }
- private void AreoListView_HandleCreated(object sender, System.EventArgs e)
- {
- SetWindowTheme(this.Handle, "explorer", null);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment