What is pasted into a RichTextBox?

  • Thread starter Thread starter Dave Wurtz
  • Start date Start date
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
 
Back
Top