public Form1() { InitializeComponent(); DriveInfo[] allDrives = DriveInfo.GetDrives(); foreach (var drive in allDrives) comboBox_Disk.Items.Add(drive.Name); comboBox_Disk.SelectedIndex = 0; SearchPresenter search_presenter = new SearchPresenter(this); SearchResult.SmallImageList = IconsAssociated; System.Reflection.PropertyInfo controlProperty = typeof(System.Windows.Forms.Control) .GetProperty("DoubleBuffered", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); controlProperty.SetValue(listView_SearchResults, true, null); }
public Form1() { InitializeComponent(); DriveInfo[] allDrives = DriveInfo.GetDrives(); foreach (var drive in allDrives) { comboBox_Disk.Items.Add(drive.Name); } comboBox_Disk.SelectedIndex = 0; SearchPresenter search_presenter = new SearchPresenter(this); SearchResult.SmallImageList = IconsAssociated; System.Reflection.PropertyInfo controlProperty = typeof(System.Windows.Forms.Control) .GetProperty("DoubleBuffered", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); controlProperty.SetValue(listView_SearchResults, true, null); }