当前位置:首页 > 开发 > C# > 正文内容

C# 获取文件图标

C#4年前 (2022-10-23)
string file = @"C:\Windows\explorer.exe";
pictureBox1.Image = System.Drawing.Icon.ExtractAssociatedIcon(file).ToBitmap();


转载请注明出处。

本文链接:http://www.pythonopen.com/?id=223

相关文章

C# Winform 禁止控件因方向键切换焦点

protected override bool ProcessCmdK...

C# System.IO.Path

System.IO.Path.GetExtension返回指定的路径字符串的扩展名。string&n...

C# Byte[]转为Bitmap

在 C# 中,可以使用System.Drawing命名空间下的相关类将byte[]类型的数据转换为B...

C# Graphics文本抗锯齿

g.TextRenderingHint = TextRenderingHint....

C# TextRenderer.MeasureText

TextRenderer.MeasureText是System.Windows.Forms命名空间中...

C# i++和++i的区别

核心区别操作顺序            ...