Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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:
VB
Call PDFx.SetDevInfo("sssss-sssss-sssss-sssss-sssss-sssss", "sssss$sssss$sssss#")
PDFx.OpenDocument(Application.StartupPath & "\Application.pdf")
Posted
Updated 19-Jan-13 9:33am
v2
Comments
Sergey Alexandrovich Kryukov 20-Jan-13 14:47pm    
Think about it: click is a physical action, you cannot disable it.
If you want to avoid the effect of the click, why?!
—SA
Aravindba 29-Jan-13 21:51pm    
Based on the user rights i have give premession to right click and do further action.If user level1 cannot right click and do save as ,find,ect.,
Sergey Alexandrovich Kryukov 29-Jan-13 21:58pm    
This is good that you mention user rights. According to these rights, you should not disable right click. So, what's the problem?
—SA
Aravindbpanchu 27-Feb-13 0:35am    
Thanx for ur reply,sorry for late reply.
But in web application it available (http://www.codeproject.com/Questions/456027/How-to-disable-right-click-option-for-pdf-file)
see this link.Is it way to find right click action in vb.net ?
Sergey Alexandrovich Kryukov 27-Feb-13 0:57am    
Good point, I know. Well, I would say, having some feature in the Web does not make it legitimate.
In fact, the Web is a huge source of totally non-legitimate and unacceptable practices, don't you see that?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900