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

C# 获取文件图标

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


转载请注明出处。

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

相关文章

C# 监控剪贴板

命名空间    using System.Runtime.I...

在 C# 中实现类似于 Windows 资源管理器的“名称”排序方式

要在 C# 中实现类似于 Windows 资源管理器的“名称”排序方式,你需要考虑以下几点:1. 不...

C# 可空参数

using System; using System.Runtime.Inte...

C# double转为string并保留两位小数

在 C# 中,可以使用多种方式将 double 类型的数据转换为 string 类型并保留两位小数,...

C# Browsable(bool)

在编程中(比如常见的 C# 语言在开发 Windows Forms 等应用程序时),Browsabl...

C# ref 和out

ref关键字概念:ref是 C# 中的一个关键字,用于按引用传递参数。当在方法调用中使用ref关键字...