Solved

Loosing formatting when pasting into a richtextbox

Posted on 2006-10-22
1
183 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 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