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

PDF-XChange Viewer SDK
Simple DLL and ActiveX

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan

Post Reply
sarahah
User
Posts: 1
Joined: Wed Sep 06, 2017 10:24 am

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

Post by sarahah » Thu Sep 14, 2017 6:55 am

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")

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13376
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

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

Post by Tracker Supp-Stefan » Thu Sep 14, 2017 9:31 am

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

Post Reply