How to setup the ack timer for guarantee messaging

Hi @TomF, thanks for the replies.
The purpose of SetText is just to show the information on the window form. I did not overwrite the message, because based on the sample code, it uses the following code to display the message, I just use callback to let it show on the UI.
[Sample code]

Console.WriteLine(“Message content: {0}”, Encoding.ASCII.GetString(message.BinaryAttachment));

[My code]

SetText(Encoding.ASCII.GetString(message.BinaryAttachment));

delegate void SetTextCallback(string text);

private void SetText(string text)
{
if (this.txtSubData.InvokeRequired)
{
SetTextCallback d = new SetTextCallback(SetText);
this.Invoke(d, new object { text });
}
else
{
string time = DateTime.Now.ToString();
this.txtSubData.Text += time + " " + text + “\r\n”;
}
}