ProgressBar1.position:=ProgressBar1.position +10; if ProgressBar1.position = 100 then Showmessage ('you '); Timer1.Enabled:=False;