Solved

Loosing formatting when pasting into a richtextbox

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now