Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newline in a string??

Status
Not open for further replies.

NewToVB

Programmer
May 6, 2002
10
IN
Hi all, I'm really new to visual basic and I was trying to basically put a newline in after i print out a string. So something along the lines of:

textbox.Text = "hello world \n"

However, the \n doesnt seem to work. Anyknow the newline character for this?? or another way to do effectively the same thing? Thanks for you help.
 
Can c ur a Perl person :)

textbox.Text = "hello world" & vbcrlf & "a new line"

vbcrlf stands for vb, carriage return, line feed.

 
Same as the previous post.
textbox.Text = "hello world" & vbnewline & "a new line"




David Paulson


 
by the way, the textbox property: Multiline has to be set to True.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top