/Shaman.WinForms.IconHandler

Utilities for retrieving Windows Shell icons associated to a file.

Primary LanguageC#MIT LicenseMIT

Shaman.WinForms.IconHandler

Provides access to Windows Shell icons for file types.

using Shaman.WinForms;

// Standalone usage
Image img = IconHandler.GetIcon(".zip", true, false);

// Usage in a ListView
var iconHandler = new IconHandler(true, true);
listView.SmallImageList = iconHandler.SmallIcons;

listViewItem1.ImageIndex = iconHandler.GetIcon(".zip");