Just to further clarify, if I use:
TextBox1.Text = "test" & ControlChars.NewLine & "string"
in the form_load event, it works properly. But if I use:
Dim x As New com.ibm.machine.Service
TextBox1.Text = x.HelloWorld()
and have the helloworld method defined remotely as:
return "test" & ControlChars.NewLine & "string"
This causes the textbox1 to look like:
Hello World(BOX)string
However, if I do:
Dim x As New com.domain.machine.Service
RichTextBox1.Text = x.HelloWorld()
It looks correct with a line break.
"Ben R." wrote:
Hi Larry,
I've already tried this. The string still shows with a box in place of a
linebreak...
-Ben
"Larry Lard" wrote:
Ben R. wrote:
Hi,
>
I've got a webservice that just returns a string, and in the middle of the
string, I use a controlchars.newline. When I set this string to the text
property of a textbox, it shows up as one line, with the newline just
appearing as a square. If I do the same with a richtextbox, it looks correct.
Do the two handle UTF-8 strings differently?
If you want a TextBox to display multiple lines you need to set its
Multiline property to true.
--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version