What is pasted into a RichTextBox?

D

Dave Wurtz

All,

Can someone tell me what DataFormat from the clipboard is used when
pasting into a RichTextBox control by using Ctrl-V?

If I copy unicode text from a HTML document and paste into a
RichTextBox control, it pastes little squares even though the RTB's
font is set to "Arial Unicode MS". If I copy the unicode text from the
HTML, paste it into MS-Word, copy the MS-Word text, and paste it into
the RTB control it works fine. The clipboard's GetFormats() does
return different formats when copying from HTML vs MS-Word, but which
one does the RTB use?

Also, is there someway to get in front the paste routine? I don't see
a 'BeforePaste' event or an overridable OnPaste method. Is there a
different way?

Thanks for your help in advance!

Dave Wurtz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top