保存数据到剪贴板或从剪贴板中检索数据 [英] save and retrieve data to/from clipboard

查看:108
本文介绍了保存数据到剪贴板或从剪贴板中检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿!
我做了一个组件.
您认为它在中央包含一个面板和一个文本框!
我在我的组件中添加了一个上下文菜单,在Items中具有复制".

我将组件放在一个大面板(以我的形式)中,例如放在x,y
位置 我在面板中添加了一个上下文菜单(在我的表单中),在Items中添加了粘贴".

我想要这样:当我复制组件实例时,将其保存到剪贴板中,并将其粘贴到面板中时,它将检索保存到类型为我的组件的剪贴板中的数据...
所以我将此组件实例添加到面板中Right lick的位置

我只想要两种方法来保存和检索数据...
非常感谢.

hey!
I''ve made a component.
you think it contains a panel and a text box in the center!
I added a context menu to my component have "Copy" in Items.

I drop my component in a big panel (in my form) for example in location x,y
I added a context menu to my panel (in my form) have "Paste" in Items.

I want this: when I copy a instance of my component it save to clipboard and when I paste it in my panel it retrieves the data that is saved to clipboard of type my component...
so I add this component instance to the panel in the location of Right lick

I Just want two methods to save and retrieve the data please...
thanks so much.

推荐答案

看一下此代码项目的问答. 通过asp.net/javascript/读取剪贴板数据Firefox中的jquery? [ ^ ]
Take a look at this Code Project Q/A. Read clipboard data by asp.net/javascript/jquery in firefox?[^]


这篇关于保存数据到剪贴板或从剪贴板中检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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