Good day!

How to detect if ctrl + c or copy keyboard action in a combo box and put the text in that combo box to clipboard..and then ctrl + v to second combo box then paste the text from clipboard that waste copied.


Thank you!

combobox.Keypress

You make your own 'clipboard'

This my be helpful to you.

To know if the user hits Ctrl + C or Ctrl + V, try this one:

Dim key as Boolean

Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
key = Shift And vbCtrlMask

If key And (KeyCode = vbKeyA) Then
'your code here
End If
End Sub

Same code applies when the user clicks Ctrl + V.
Hope this helps.

Thank you for the tips..it really help..!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.