The Icon Class

The Icon class is used to represent icons, which are small bitmaps used by the system to represent objects and can be thought of as bitmaps with a transparent background.

Icon objects can be created in a number of ways, such as:

■ From another icon object

Icons can be converted to bitmaps using the ToBitmap() method.

The SystemIcons class represents a set of icons that are provided by the system and can be used in any application. These icons are provided as a set of properties as listed in Table 11.33. Many of these properties will be familiar from their use in message boxes and other system dialogs.

Table 11.33: hpÉAféÉ

Property

Description

Application

The default application icon

Asterisk

The system asterisk icon

Error

The system error icon

Exclamation

The system exclamation icon

Hanl

The system hand icon

Information

The system information icon

Question

The system question icon

Warning

The system warning icon

WinLogo

The Windows logo

0 0

Post a comment