Solved

Loosing formatting when pasting into a richtextbox

Posted on 2006-10-22
1
199 Views
Last Modified: 2010-04-23
HI.

I have a richtextbox in my application.  When I do a try to paste information from an email,  I loose the extra spacing like you might expect as if the "tabs" were magically deleted.   For example.

 26           0         3          0  0.00%  0.00%  0.00%   0 test

looks like

 26 0 3 0 0.00% 0.00% 0.00%  0 Logger

when I paste into the richtextbox.

How do I fix this so that the spacing is preserved.

Thank you.

PS... I'm using the shift-insert method to paste the data.
0
Comment
Question by:peispud
[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 10

Accepted Solution

by:
Kinger247 earned 500 total points
ID: 17787951
I think whats happening here is that the email hasn't stored the tabs as tabs, but as spaces as it is not rtf format.

When you copy and paste the text into the richtextbox, the spaces are either reduced to one space automatically or the tab is 'seen' to be a space.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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