procedure TForm1.Button1Click(Sender: TObject);
var
i,m: integer;
begin
m:=0;
with panel1 do
for i := 0 to Controlcount - 1 do
begin
if Controls[i] is TEdit then
if TEdit(Controls[i]).Width>=m then
begin
m:=TEdit(Controls[i]).Width;
TEdit(Controls[i]).SetFocus;
end;
end
end;