Link to home
Start Free TrialLog in
Avatar of ProgsX
ProgsX

asked on

problem with NMSMTP1 and progressbar

I use the component (NMSMTP1) and a progressbar, and I am not create to make it function.

procedure TSendForm.Timer1Timer(Sender: TObject);
begin
  ProgressBar1.Position := NMSMTP1.BytesSent;
  StatusBar1.Panels.Items[0].Text := IntToStr(NMSMTP1.BytesSent);
  StatusBar1.Panels.Items[1].Text := IntToStr(NMSMTP1.BytesTotal);
end;

procedure TSendForm.NMSMTP1SendStart(Sender: TObject);
begin
  ProgressBar1.Max := NMSMTP1.BytesTotal;
  ProgressBar1.Min := 0;
end;

help me      
ASKER CERTIFIED SOLUTION
Avatar of bernani
bernani
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ProgsX,

did you test the code above ? Does it work for you ? Any feedback ?