RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIcon.LoadFromResourceName Method

Loads an icon resource into the icon object.

Pascal
procedure LoadFromResourceName(Instance: THandle; const ResName: String);
C++
__fastcall LoadFromResourceName(THandle Instance, const AnsiString ResName);

LoadFromResourceName loads the specified icon resource from a module's executable file. 

Instance is the handle of the module that contains the resource. 

ResName is the name of the resource to load. 

 

LoadFromMimeSource 

LoadFromStream

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!