Reputation: 21
I am getting an error when using Enterprise.Windows.Win32.Win32.GetLargeIcon
. Which dll do I need to import to resolve it?
public Icon ObjectIcon
{
get
{
if (_objectIcon == null)
{
_objectIcon = Enterprise.Windows.Win32.Win32.GetLargeIcon(_filePathAndName);
}
return _objectIcon;
}
}
This is a piece of code in the solution mentioned here
Thanks in Advance.
Upvotes: 2
Views: 223
Reputation: 31
Try this:
_objectIcon = System.Drawing.Icon.ExtractAssociatedIcon(_filePathAndName);
Upvotes: 1