Link Search Menu Expand Document

ImageList.LoadIcon Method

Explanation Loads the icon image associated with the extension.

The icon image is enlarged or reduced according to the size specified by the IconWidth and IconHeight properties. If you want to display the original icon size, set the IconWidth and IconHeight properties to appropriate values (for example, 32x32 for large icons).

If the LoadImage and LoadIcon methods are called repeatedly, they will be added after the loaded image list. It will not be overwritten.

Not supported by AI. If called, it will be ignored.3
Call format var num = ImageList1.LoadIcon( exp [, large ] )</td> </tr>
Return value Index number of newly added image
Arguments String exp Specify the extension. You can also specify a drive other than the extension.
If there is no application associated with the extension, or if the drive does not exist, an alternate icon will be displayed.
boolean large Set $ TRUE to get the image from the large icon and $ FALSE to get the image from the small icon.
If omitted, it follows the setting of the LargeImage property.
Exception None
Example of use
    ImageList1.LoadIcon("txt");
    ImageList1.LoadIcon("doc");
    ImageList1.LoadIcon("C:\\");
    
Related item LargeImage property
GetImage, LoadImage, RemoveImage methods