Contextual menu.

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Viewer for .NET (v2)  /  Contextual menu.

DynamicPDF Viewer for .NET (v2) Forum

 Apr 01 2018 10:30 AM
Hello,

is there any posibility to hide the contextual menu of the PDF viewer?

thank you.
 Apr 02 2018 10:08 AM
Posted by a ceTe Software moderator
Hello,

Yes, you can hide the context menu in the Viewer control without any problem using DynamicPDF Viewer for .NET product. You will need to use the ContextMenuShowing event of the Viewer control and set the Cancel property of the ContextMenuShowingEventArgs to true. Below is the code sample.

       private void pdfViewer1_ContextMenuShowing(object sender, ContextMenuShowingEventArgs e)
        {
            e.Cancel = true;
        }

Thanks,
ceTe Software Support Team.
 Apr 02 2018 1:49 PM
It worked. Thank you!.

All times are US Eastern Standard time. The time now is 12:08 AM.