Add a new line into a RichTextBox

Archived support forum for customers who once purchased a PrimalForms product license. This forum is locked.
This topic is 12 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
mchartier@cegepsth.qc.ca
Posts: 4
Last visit: Mon Oct 31, 2011 12:04 am

Add a new line into a RichTextBox

Post by mchartier@cegepsth.qc.ca »

Did someone know how to add a new line or a carriage return to a richtext box?

I need to display a list of variables into the rtb, but on per line...

Thanks
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Add a new line into a RichTextBox

Post by davidc »

You can add a new line like this: $richtextbox1.AppendText("`n")The back tick n (`n) placed in any string will tell the RichTextbox there is a new line. David
David
SAPIEN Technologies, Inc.
User avatar
mchartier@cegepsth.qc.ca
Posts: 4
Last visit: Mon Oct 31, 2011 12:04 am

Add a new line into a RichTextBox

Post by mchartier@cegepsth.qc.ca »

Thanks a lot!
This topic is 12 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.