for i :=0 do form1.componentcount - 1 do if form1.component[i].name = 'btn1' then form1.components[i].top := 0;