Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27193

output to textbox gives weird characters at hard return positions

$
0
0
I want to fetch some data from an xml file and display this within a textbox. The fetching works great, but the hard returns in the text are being displayed as ||| within the textbox.


For example:

If this is in the xml file:

Code:

Hello, this is

a

test

it will be displayed in my textbox as:

Code:

Hello, this is|||a|||test.
I think I've got to replace this ||| characters with a vbCrLf, but I'm not sure how to do this.. since it's not working.

This is the coding I have:

Code:

TextBox12.Text = Form1.ListBox12.Items(Form1.ListBox1.SelectedIndex).ToString.Replace("\r\n", vbCrLf)
Ps: My textbox is set to multiline, and there is nothing wrong with the way I read out my xml file cause when I output to the clipboard it's being displayed correctly (without the weird characters).

Viewing all articles
Browse latest Browse all 27193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>