当前位置:首页 > 开发 > 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# 获取带有焦点的控件

this.ActiveControl...

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

protected override bool ProcessCmdK...

C# 可空参数

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

C# BackgroundWorker的例子

以下是一个使用 BackgroundWorker 组件在 C# 中实现后台执行任务,同时在主线程更新...

C# OnMeasureItem

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

C# ref 和out

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