cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

newline in textbox

ptc-2648740
1-Newbie

newline in textbox

I want to show text such as
fist line
second line
third line
in the mathcad control->textbox.

I used
TextBox.Text = "fist line" & chr(13) & "second line " & chr(13) & "third line"
in the script, but the newline showed as a squre symbol in the text box.

what would you suggest?

thanks in advance
2 REPLIES 2
RichardJ
19-Tanzanite
(To:ptc-2648740)

TextBox.Text = "fist line" & vbCrLf & "second line " & vbCrLf & "third line"

Richard

Thanks a lot, Richard!
Top Tags