Loosing formatting when pasting into a richtextbox

peispud
peispud used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial