private void LoadSystemImageList() { _systemImageList = new SystemImageList(); string tempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); Directory.CreateDirectory(tempPath); try { _folderIcon = _systemImageList.AddShellIcon(tempPath, 0); } finally { try { Directory.Delete(tempPath); } catch { // Ignore exceptions } } }