Is there a way to use the properties of a component created in run-time without knowing its name? And by this I mean after you already done this.
with TPanel.Create(self) do
begin
Name := 'Panel' + IntToStr(ComponentCount + 1);
Height := 50;
Width := 100;
Top := 30;
Left := 30;
Parent := self;
end;
See Question&Answers more detail:os