This class provides you with properties to retrieve those handy
system icons, such as the Error and
Information symbols. As an added bonus,
you've also got a Hand and the
WinLogo.
While these icons implement IDisposable,
don't release the resources yourself or you will
leave the disposed remains of an icon in the internal system icons
table for the next poor client to use. Unfortunately, the
implementation only tests for nullness before recreating the
Icon rather than checking
IsDisposed.
public sealed class SystemIcons {
// Public Static Properties
public static Icon Application{get; }
public static Icon Asterisk{get; }
public static Icon Error{get; }
public static Icon Exclamation{get; }
public static Icon Hand{get; }
public static Icon Information{get; }
public static Icon Question{get; }
public static Icon Warning{get; }
public static Icon WinLogo{get; }
}