Compiler/IDE: Lazarus
Libraries/API: LCL

To change the caption of labels i'm using:
[pascal]
for i:=1 to 10 do
formname.ControlByName('tlabelname'+inttostr(i)).c aption:='';
[/pascal]

I tryed to use the same way to load image
[pascal]
for i:=1 to 10 do
formname.ControlByName('timagename'+inttostr(i)).p icture.LoadFromFile('file.bmp');
[/pascal]

I looked in the LCL reference and saw that thers no method like this by useing ControlByName.

Does someone has any idea how to load image from file to list of Timages by their names?