procedure TForm1.Button1Click(Sender: TObject); begin //Use the API Sleep to delay for 5 seconds Sleep(5000); end;