new line on txtbox?

frix199

Member
Joined
Jul 18, 2005
Messages
19
Programming Experience
1-3
[title] how to?

anyway how can i make a new line on a txtbox??? :D

ciao!
 
aniskhan said:
VB.NET:
  TextBox1.Text = "line1" & vbCrLf & "line2"
  TextBox1.Text += "line1" & Chr(13) & Chr(10) & "line2"

frix199 said:
hm tnx:p

ciao!

i strongly recamend staying away from things like vbCrLf because they're vb6 legacy things that MS wont include in future versions of .Net and Chr(10) & Chr(13) does do the trick, but looks rather ugly and can be hard to follow
 
Back
Top