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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove a Blank Line from Rich Text Box

Status
Not open for further replies.

rstum2005

Programmer
Jun 9, 2005
117
US
I tried doing a search but found nothing so far. I have a richtextbox and it looks like this.
Code:
This

RichTextBox
Has

Blank^
Lines
 
Try this:

richTextBox1.Text=richTextBox1.Text.Replace("\n\n","");


I Hope That helps
Contact me if you have any problem

Best Regards
 
Hey! Thanks. But, I did figure this out already.

Thanks though.
 
I split the text in the richtextbox on /n && " " and then I added the contents that were greater than 2 characters to a listbox. The part im working on now is comparing two listboxes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top