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

C# 获取文件图标

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


转载请注明出处。

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

相关文章

C# 模拟按键

方法1SendKeys.SendWait("123{TAB}abc");&nbs...

C# 数据类型

Type ByteLenghtMinMax.NET Framework Typedefau...

C# MDI例子

父窗口属性IsMdiContainer设置为Trueprivate void b...

C# SHA1

GetFileSHA1        ...

C# Winform 使用控件移动窗口

前置     将窗口的FormBorderStyle属性设置为F...

C# OnMeasureItem

1. **整体功能概述**   - `OnMeasureItem` 是一个在Wi...