i want to print few strings in the textbox ,but i don't know how to use newline character to seperate them.
Printable View
i want to print few strings in the textbox ,but i don't know how to use newline character to seperate them.
use vbcrlf
i try to use it , but still can not compile.
i do like this :
text1.text = "hello" vbcrlf "hi" vbcrlf "yes"
not working .
forgot "&" between words and vbcrlf
Steph
Sorry my mistake ..I need to be more specific
text1.text = "hello" & vbcrlf & "hi" & vbcrlf & "yes"
You can also use VbNewLine with
a textbox control
I'm pretty sure the Text1.MultiLine Property has to be set to true.
Then you can use:
Text1.Text = "Hello" & vbNewLine & "Then a new line"
get it? :)