c# - 企业 Enterprise.windows.win32.win32

标签 c#

我在使用 Enterprise.Windows.Win32.Win32.GetLargeIcon 时遇到错误。我需要导入哪个dll才能解决?

public Icon ObjectIcon
{
    get
    {                
        if (_objectIcon == null)
        {
            _objectIcon = Enterprise.Windows.Win32.Win32.GetLargeIcon(_filePathAndName);
        }

        return _objectIcon;
    }
}

这是here提到的解决方案中的一段代码

提前致谢。

最佳答案

试试这个:

_objectIcon = System.Drawing.Icon.ExtractAssociatedIcon(_filePathAndName);

关于c# - 企业 Enterprise.windows.win32.win32,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37117385/

相关文章:

c# - 在上一个操作完成之前,第二个操作在此上下文中启动。接口(interface)上的异步方法

c# - 格式化数字作为排名位置

C# 正则表达式精确长度

c# - 500 jQuery Web 方法调用内部错误 - IIS 5.1 (:-/yea i know. ..)

c# - 用于 Xml 序列化的 XmlRoot() 不起作用

C#实时显示进程的输出

c# - 在 .MSI 自定义操作中安装证书无法正常工作

c# - ASP.NET 模型绑定(bind)器无法绑定(bind)包含集合的复杂对象的集合

c# - 在 SSL 页面上上传文件

c# - 优化 SQL 连接性能?