Newbie: Textbox text from string

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top