Setting Task Description: new line carriage return ignored.

Dec 24, 2015 at 3:28 PM
When setting task description text, vbCrLf is ignored.
How can we specify that a new line should start?
Dec 24, 2015 at 9:35 PM
I'm not sure what vbCrLf translates to in a string. However, I do know that in C# one can add new lines by putting in the "\r\n" combination. For example, the following code works:
td.RegistrationInfo.Description = "1) Line 1\r\n2) Line 2";
Dec 24, 2015 at 10:01 PM
in vb.Net vbCrLf is the equivalent to \r\n (Carriage Return + LineFeed).
Did you test the effect of using \r\n ?
Dec 25, 2015 at 12:23 PM
Tried environment.newline instead of vbCrLf. But it still doesn't result in a new line inside the description.
Dec 26, 2015 at 8:05 PM
Thanks for pointing out how this works as it has helped me find a bug. For some reason, the native Microsoft 2.0 library will strip out the CR value from the string after registering a RegistrationInfo.Description or a RegistrationInfo.Documentation value with a CRLF value in it. The native windows multi-line textbox, expects a CRLF to display multiple lines. I have added code to correct for the native error for those two items and it will appear in the next release.
Marked as answer by dahall on 12/30/2015 at 8:02 AM