When i run your code i get the error that findcomponet not exists.
I give a var that component is a Tcomponent and change the line in
component.findcomponent('button'+IntToStr(i));
It compiles run ok but no visible button hmmm why?
Thank you for the help....
Update
I made this and it works
for i := 0 to howmany do
begin
With TBitBtn(FindComponent('BitBtn'+inttostr(i))) do
Visible := true;
end;
But it works only in In the main form if take the code and put it in an empty unit not working
Any thoughts....
Bookmarks