TextBox1.Text = String.Concat("hello", vbCr, "world") 'does not work
TextBox1.Text = String.Concat("hello", vbCrLf, "world") 'works
TextBox1.Text = String.Concat("hello", Environment.NewLine, "world")
'works
TextBox1.Text = String.Concat("hello", Chr(13), "world") 'doesn`t work
TextBox1.Text = String.Concat("hello", Chr(13), Chr(10), "world") 'works
in windows a newline is standard cariage return and linefeed
HTH
Michel
AWW said:
Yes, multiline is True in both RichTextBox & TextBox and
both VbCr/VBTab work in RichTextBox but only VbTab in TextBox.
I can rewrite the whole box but would like to rewrite individual lines
and cannot find any way to set a position for the rewrite.
Thanks - so far.
On Thu, 21 Jun 2007 20:38:04 +0200, "Michel Posseth [MCP]"
First make sure the textbox`s multiline property is set to true
and maybe you would findit easier to use the handy VB contstants
VbCr ( cariage return )
VbCrlf ( cariage return linefeed )
VbTab ( tab )
regards
Michel
<AWW> schreef in bericht
Using Textbox.Text = "123" & CStr(13) & "456"
I expect 2 lines on the screen but get 1 line with 13 in it.
It worked once in a RichTextBox but then stopped.
I just want to display aligned tabular data on the screen using CR &
Tabs to create data columns.
I am an old programmer but .Net novice.<g>
Help.