Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding a blank line to a richtextbox

Status
Not open for further replies.

luisve

Programmer
Jun 24, 2005
29
US
hi i am sending a string to a richtexbox,but if i send another one the last one replaces the last one, how can i add the second string to a new line?
 
Have you tried
Code:
RTBox.RTF = string1.Trim() + "\n\r" + "\n\r" + string2.Trim();
where \n\r is the carriage return + line feed?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top