如何在vb6 ..中使用我自己的复印机软件粘贴剪贴板数据? [英] How to paste clipboard data using my own copier software in vb6 ..?

查看:74
本文介绍了如何在vb6 ..中使用我自己的复印机软件粘贴剪贴板数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建自己的复印机,但是现在我在使用自己的复印机粘贴剪贴板数据的部分感到困惑.

我正在用vb6写我的复印机,所以我只想为vb6解决方案,编写代码或取样.

因此,请帮助我了解如何使用自己的复印机软件粘贴剪贴板数据.

谢谢.

I want to create my own copier but now i am confused in the section of pasting of clipboard data using my own copier.

I am writing my copier in vb6 so i want to solution or code or sample for vb6 only.

So please help me for how i can paste clipboard data using my own copier software.

Thank you.

推荐答案

上面的示例不是特定于VB6的-您想在控件上使用VB6 KeyDown或KeyUp事件.

(假设您要使用Textbox1作为控件来侦听键)

Above example isn''t VB6 specific - You want to use the VB6 KeyDown, or KeyUp events on your control.

(Let''s assume you''re want to use Textbox1 as the Control to listen for the Keys)

Private Sub Textbox1_KeyDown(KeyCode As Integer, Shift As Integer)
    If (KeyCode = 17) And Shift = 2 Then
        TextBox1.Text = Clipboard.GetText
    End If
End Sub




上面的操作会将剪贴板的当前文本内容放入您的文本框中.


谢谢.
James.




The above will put the current text contents of the clipboard into your textbox.


Thanks.
James.


很多示例和建议 ^ ]来帮助您进行设计.
Lots of samples and suggestions here[^] to help in your design process.


这篇关于如何在vb6 ..中使用我自己的复印机软件粘贴剪贴板数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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