?
Solved

Arrange text in RichTextBox.

Posted on 2009-04-05
1
Medium Priority
?
404 Views
Last Modified: 2013-12-17
I have 1 RichTextBox with text from database (like this: RichTextBox.Text= myReader["Detail"].ToString();
Detail from Database like this: Name: CompanyName. Address: Newtown. Phone: 0010203920133.
How can I arrange text in RichTextBox to display like this:
Name: CompanyName.
Address: Newtown.
Phone: 0010203920133.
(new line after point mark).

Please help me!
0
Comment
Question by:Mr_Bach
1 Comment
 
LVL 9

Accepted Solution

by:
djon2003 earned 2000 total points
ID: 24074533
With the RichTextBox lets call "rtb"..
rtb.Text = rtb.Text.Replace(". ", ".\n");
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question