Solved

Arrange text in RichTextBox.

Posted on 2009-04-05
1
391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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