当前位置:首页 > 开发 > 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# 跳出foreach循环

在 C# 中,如果你想在 foreach 循环内部提前跳出当前这一轮循环,继续执行下一轮循环,可以使...

C# [OnPaint]和[OnPaintBackground]的区别

OnPaint和OnPaintBackground的主要功能区别OnPaint:OnPaint方法主...

c# Invalidate、Refresh、Refreshitem、Refreshitems的功能

Invalidate方法功能概述Invalidate方法主要用于使控件的特定区域(整个控件或部分区域...

C# using与多重using

1. using 语句概述在 C# 中,using 语句主要用于确保实现了 IDisposable...

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

核心区别操作顺序            ...