如何preserve剪贴板中的内容 [英] How to preserve the contents of the clipboard

查看:152
本文介绍了如何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.

这篇关于如何preserve剪贴板中的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆