如何监视鼠标右键单击复制事件以限制VB.net中的剪贴板 [英] How to monitor a Mouse right click copy event to restrict Clipboard in VB.net
问题描述
我正在尝试对我的应用程序进行复制限制.我已经完成了ctrl-c和ctrl-v等键盘事件的代码,但是,
我无法从鼠标右键单击复制中停止复制.
我已经尝试过
受保护的替代子WndProc(作为消息传递ByByRef)事件,
选择案例m.Msg
大小写为= WM_DRAWCLIPBOARD
SendMessage(mNextClipBoardViewerHWnd,m.Msg,m.WParam,m.LParam)
结束选择
但是,在这种情况下,对于复制和粘贴,两个事件都将发生.
请告诉我如何限制鼠标右键单击副本.
I''m trying to make copy restriction for my applicaion. I have done the code for key board events like ctrl-c and ctrl-v but,
I could n''t able to stop copying from mouse right click copy.
i have tried
Protected Overrides Sub WndProc(ByRef m As Message) Event,
Select Case m.Msg
Case Is = WM_DRAWCLIPBOARD
SendMessage(mNextClipBoardViewerHWnd, m.Msg, m.WParam, m.LParam)
End Select
But , for copy and paste both events are comming under this case.
Please tell me how to restrict mouse right click copy.
推荐答案
检查一下
Visual Basic .NET中的上下文菜单和事件处理 [ ^ ]
http://www.a1vbcode.com/snippet-4474.asp [
check this out
Context Menu and Event Handling in Visual Basic .NET[^]
http://www.a1vbcode.com/snippet-4474.asp[^]
这篇关于如何监视鼠标右键单击复制事件以限制VB.net中的剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!