Newbie: Textbox text from string

  • Thread starter Thread starter Jarry
  • Start date Start date
J

Jarry

If I were to set textbox text from a string, as such:
dim myString as string = "Hello"
textbox1.text = myString
It of course works. But what is the rule concerning new lines, for
instance, the following:
dim myString as string = "Hello" & chr(10) & "Goodbye"
textbox1.text = myString
Then both are displayed on the same line even though:
msgbox(myString)
would show them on different lines. How do I get example two to show
them on different lines?

Thanks
 
Back
Top