winform获取EXE图片

winform获取EXE图片

using (FileStream fs = new System.IO.FileStream(n,
FileMode.OpenOrCreate, FileAccess.Write, FileShare.None))
{
System.Drawing.Icon.ExtractAssociatedIcon(path).Save(fs);
}

 

转载于:https://www.cnblogs.com/lucika/p/5177716.html

你可能感兴趣的:(c#)