Imagelist.loadIcons(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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');