Jul 10
It's easy to extract an application's own icon in C#:
form.Icon = Icon.ExtractAssociatedIcon( Application.ExecutablePath );
The ExtractAssociatedIcon static method on the Icon class (in System.Drawing) extracts the associated icon from any file. By supplying the Application.ExecutablePath (in System.Windows.Forms), you extract the application's own icon.
Popularity: 29% [?]
Copyright © 2007-8 Tiwebb Ltd. All rights reserved. This material may not be published, broadcast, rewritten or redistributed without explicit permission from Tiwebb Ltd.

