Solved

Copy / Paste RTF

Posted on 1998-09-05
4
399 Views
Last Modified: 2010-04-30

Each time a copy from my rtf control and paste the contents anywhere else, I seem to get the RTF codes with it.

How do you simply copy the actual text without the codes?

0
Comment
Question by:idcanada
4 Comments
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1433279
did you tried to clear the content of the Clipboard:

first do this

clipboard.clear
then RichTextBox1.Text = ""

and then place your text into the rtf..

 
0
 
LVL 4

Author Comment

by:idcanada
ID: 1433280
a111,
Whenever you see my name,
please ignore my it.

Do not try to answer any of my Questions in the futur please.


0
 
LVL 1

Accepted Solution

by:
kdimmock earned 20 total points
ID: 1433281
Not too sure whether this is what you want but it might give you some ideas...

The control has a couple of useful properties ...

TextRTF and Text

TextRTF contains the RTF codes, the Text doesn't.

I'm not sure how you are doing the copy, but if you put some code behind a menu/command button/..

Clipboard.SetText RichTextBox1.Text

This should help!?

Good luck!
0
 
LVL 14

Expert Comment

by:waty
ID: 1433282
I have curently the same problem. What I will do, is parsing the text with a function removing all the non ASCII characters.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert VB6 MSXML2.ServerXMLHTTP process to C# 2 58
Spell Check in VB6 13 127
Passing a Text Box name to a Sub 6 99
Help me. 3 60
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

828 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