SystemIcons

SystemIcons

System.Drawing (system.drawing.dll) sealed class

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; } } 


. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net