Page 1 of 1

How to Disable right click in pdf viewer in vb.net (Windows Application)

Posted: Thu Sep 14, 2017 6:55 am
by sarahah
Hi
How to Disable right click operation in pdf file in vb.net (Windows Application)
I am using AxInterop.PDFXCviewAxLib and Interop.PDFXCviewAxLib referances.
And i am call that pdf file like:

Call PDFx.SetDevInfo("sssss-sssss-sssss-sssss-sssss-sssss", "sssss$sssss$sssss#")
PDFx.OpenDocument(Application.StartupPath & "\Application.pdf")

Re: How to Disable right click in pdf viewer in vb.net (Windows Application)

Posted: Thu Sep 14, 2017 9:31 am
by Tracker Supp-Stefan
Hello Sarahah,

Thanks for the e-mail and enquiry.
Please take a look here:
https://www.tracker-software.com/forum3 ... ck#p105803
This should help you with capturing the mouse events and then handling the context menu (by not showing it).

Regards,
Stefan