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: 16% [?]

Related posts:

  1. NotifyIcon.ShowBalloonTip Issues
  2. Determine if Your C# Application is 64-bit
  3. Close All Forms in an Application in a Thread-Safe Manner
  4. Console Output from a WinForms Application
  5. Determine the .NET Versions on which an Application is Compiled and Running