unix2dos with .net

I have some code that is getting output from a Linux script and I display it in a textbox.  How can I convert this to display correctly on my screen?  I would like to do this without having to write the file out.  Can I do a unix2dos conversion in .net?
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Robert SchuttConnect With a Mentor Software EngineerCommented:
The problem with this usually is in the different line endings. To convert the unix 'linefeed-only' to the dos/windows 'cr/lf' you can use:
TextBox1.Text = strUnixText.Replace(vbLf, vbCrLf)

Open in new window

Meir RivkinFull stack Software EngineerCommented:
can u post an example?
chadmanvbAuthor Commented:
When I display the output into a text box it does not see the correct line breaks.  It looks and shows up as one long line. It should only show 2 lines and line up the columns.
Also, set the Multiline property of textbox to true and increase its height.
chadmanvbAuthor Commented:
That did it!  Thanks.
All Courses

From novice to tech pro — start learning today.