使用Windows服务 [英] using windows services

查看:67
本文介绍了使用Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个列表框,我想将项目保留在剪贴板中,我必须保留第一个,粘贴后,我必须在剪贴板中保留第二个项目,依此类推.
我该怎么办?
对不起,我的英语不好;-);

Hi everyone,
I have a listbox and I want to keep the items in clipboard and I must keep first one and after pasting it I must have the second item in clipboard and so on.
How Can I do this?
Excuse me for my poor english;-);

推荐答案

不知道为什么您认为自己需要服务.有一个剪贴板类,您可以将项目移入其中.如果您想要剪贴板中有多个项目,则需要自己循环.您可以通过创建自己的格式放入多个项目,因此只有一个项目可以将所有数据存储在所需的集合中.
Not sure why you think you need a service. There''s a clipboard class which you can move items in to. If you want more than one item in the clipboard, then you need to cycle them through yourself. You could put multiple items in by creating your own format, so there''s one item which stores all the data in the collection you want.


这篇关于使用Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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