Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
E.F. Nijboer 30-Mar-12 3:53am    
What do you mean with your own copier software? Does it mean you want to implement clipboard functionality in your application yourself? Or just want to use the windows clipboard?

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)

VB
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



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


Thanks.
James.
 
Share this answer
 
Lots of samples and suggestions here[^] to help in your design process.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900