I am trying to detect right click mouse copy/paste events as below.I am able to detect mouse right click, but don't know how can I detect which event(copy or paste) among different right click menu options have been selected.I am working with TDBGrid cotrol here.
Private Sub TDBgrd_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error GoTo ErrorHandler
If Button = 2 Then
TDBGrid.AllowUpdate = True
TDBGrid.Columns(CurrentColumnIndex).value = Clipboard.GetText(vbCERTF)
End If
Private Sub TDBgrd_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error GoTo ErrorHandler
If Button = 2 Then
TDBGrid.AllowUpdate = True
TDBGrid.Columns(CurrentColumnIndex).value = Clipboard.GetText(vbCERTF)
End If