Is there a way to do a paste into a picturebox at runtime (as there is at design time)?
A solution will earn you a great big thank you, and a star if it really, really, really solves my problem! Tuna - It's fat free until you add the Mayo!
For a form with Picture1, set Form.KeyPreview = True to catch keypresses:
Private Sub Form_Load()
Me.KeyPreview = True
End Sub
Then process keystrokes:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = Asc("V" And Shift = vbCtrlMask Then
Set Picture1.Picture = Clipboard.GetData
End If
End Sub
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.