var
i,v:Integer;
begin
ProgressBar1.Min:=1;
ProgressBar1.Max:=10000;
ProgressBar1.Step:=1;
v:=0;
for i:=1 to 10000
begin
inc(v,i);
ProgressBar1.StepIt;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
i,v:Integer;
begin
ProgressBar1.Min:=0;
ProgressBar1.Max:=10000;
ProgressBar1.Step:=1;
v:=0;
for i:=1 to 10000 do
begin
inc(v,i);
ProgressBar1.StepIt;
end;
end;