I am currently using a text box in my app and I can't get it to recognize carrage retun ( chr(13) ).
I want to place the text in the control , at the length I choose for each line.
Is this possible??
Thanks.
Dan.
Printable View
I am currently using a text box in my app and I can't get it to recognize carrage retun ( chr(13) ).
I want to place the text in the control , at the length I choose for each line.
Is this possible??
Thanks.
Dan.
Do you mean you're trying to add the Chr(13) Character to the the Textbox?
If so, try the vbCrLf constant instead, ie.
Code:Dim sText As String
sText = Text
Text1 = Left(sText, 10) & vbCrLf & Mid(sText, 11)
Also don't forget to set the textbox's MultiLine property to True.