如何preserve剪贴板中的内容

如何preserve剪贴板中的内容

问题描述:

有没有一种方法,以preserve剪贴板中的内容是什么?我尝试以下code,但它不能正常工作。

Is there a way to preserve the contents of the clipboard? I tried the following code but it doesn't work.

Dim iData As IDataObject = Clipboard.GetDataObject()
...(use clipboard)
Clipboard.SetDataObject(iData)

感谢你。

最简单的方法preserve剪贴板中的内容是独自离开剪贴板。剪贴板是指作为一个临时存储区的用户的,而不是用于应用程序,所以可能你正在试图做的比来揍剪贴板更好的解决方案。

The easiest way to preserve the contents of the clipboard is to leave the clipboard alone. The clipboard is meant as a temporary storage area for the user, not for applications, so likely what you are trying to do has better solutions than to clobber the clipboard.