Skip to main content

Problem:

In .Net WinForms how can you append text to a multi line textbox control.

Resolution:

To do this you need to append text to the string and new hex ODOA (Carriage Return Line Feed) as the terminator for a line.

The code required is something like:-

01 ws-newline pic x(2) value x"0d0a".

set self::"textBox1"::"Text" to class-string::"Concat"(textbox1::"Text",ws-newline,"This is a another line.")

You just need to concatenate the strings together.

Old KB# 3801