Monday, July 2, 2012

Get Icon from process (C#)

Code:
Icon ico = Icon.ExtractAssociatedIcon(process.MainModule.FileName);
if you want to convert to image, just cast it to a bitmap object.
Source: Stack overflow

0 comments:

Post a Comment