Cplipboard Copy and Paste
Posted on 2004-08-10
Hi everyone, I've got a main form with an rtfBox and I'm trying to use functions copy and paste. Here's the deal, I have a menu with copy as CTR+C and Paste as CRT+V just like windows. However if I tried to paste RTF code to notepad nothing would show! So I added as follows:
Clipboard.SetText rtfBox.SelRTF, vbCFRTF
I'm able to paste to winword and to notepad. However, if I try to past on my own box with the menu paste: rtfReferences.SelText = Clipboard.GetText I get the text with no format. and If I press CRT+V that should evoke the same menu it pastes both rtf and normal text and i get the text twice. Can you help me make both functions like normal word processors?
Thank you very much!