Home > Net >  Clipboard contents contains multiple files and text, as a result, only paste text to RichTextBox
Clipboard contents contains multiple files and text, as a result, only paste text to RichTextBox

Time:04-11

I use VB.NET,
Operation: first passed the clipboard copy multiple files, but also contains the text, and then paste to RichTextBox Control + V, only text display,
Again operation: delete text, only keep multiple files, also through the clipboard copy, used to paste the RichTextBox Control + V, all documents can be displayed,

Through QQ, WeChat test, the system clipboard is to copy the files and text, also can paste, so is not a problem clipboard,
Then use DataObject. ContainsFileDropList ()=True judge whether the clipboard contains files, is to judge, but as long as the shear content contained in the text, this statement is no reaction,

I would like to copy multiple files and text at the same time a paste to RichTextBox, consult how to solve!
  • Related