Solved

Arrange text in RichTextBox.

Posted on 2009-04-05
1
381 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 500 total points
ID: 24074533
With the RichTextBox lets call "rtb"..
rtb.Text = rtb.Text.Replace(". ", ".\n");
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now