Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21843

detect mouse right click menu events

$
0
0
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

Viewing all articles
Browse latest Browse all 21843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>