如何获取程序的图标,给出文件的路径如何获得它的图标??

解决方案 »

  1.   

    http://www.codeproject.com/csharp/fileicon.aspThe end result is two classes which make use of .NET's Interoperability to call the Win32 API to obtain icons for specified files and or folders. The IconReader class enables the caller to obtain icons directly (which may be all you need). However, an IconListManager class is then created which maintains icons within two ImageList types and shields you from retrieving icons directly.有源代码和示例,自己看吧