Share via


Imagelist.loadIcons(String) Method

Definition

Loads icons from the specified resource into the image list.

public:
 virtual int loadIcons(System::String ^ _moduleName);
public virtual int loadIcons (string _moduleName);
abstract member loadIcons : string -> int
override this.loadIcons : string -> int
Public Overridable Function loadIcons (_moduleName As String) As Integer

Parameters

_moduleName
String

The name of the file from which to load images.

Returns

0 if the method is successful.

Remarks

The following example creates a list of images and then loads the images that are contained in the shell32.dll file.

Imagelist list; 
list = new Imagelist(Imagelist::iconWidth(),Imagelist::iconHeight()); 
list.loadIcons('shell32.dll');

Applies to