Solved

Arrange text in RichTextBox.

Posted on 2009-04-05
1
387 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with preventing downloading a zip file 10 45
Call Controller Action Method from ASPX 2 22
Finding the IIS version 5 21
Code enhancement 4 20
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:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

808 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