Solved

Loosing formatting when pasting into a richtextbox

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

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