-
i cannot get a enter/nextline to go into a textbox during runtime.
multiline property is on and in design mode i can put enters but i cant in runtime.
these are the things that i've tried:
text1.text = "line1" + chr(13) + "line2"
text1.text = "line1" + chr(10) + "line2"
text1.text = "line1" + chr(0) + "line2"
text1.text = "line1" & chr(13) & "line2"
text1.text = "line1" & chr(10) & "line2"
text1.text = "line1" & chr(0) & "line2"
text1.text = "line1"
text1.text = text1.text + "line2"
text1.text = "line1"
text1.text = text1.text & "line2"
it always comes out like this (in the textbox)
line1line2
no matter what i try i cant get it to work
remember multiline is on.
help me please!!!!!!!!!
-
You must have got this wrong somewhere, chr(13) & chr(10) is carriage return, the vbcrlf constant you need to use.
Code:
text1.text= "line1" & vbcrlf & "line2"
-
thank you very much, kedaman!
this has been bugging me for a long time!