Is it possible to selectively disable or hide command buttons in the pdfviewer control? For example if I want to disable or hide the Open and Save Command buttons?
Selectively disabling command bar buttons
Re: Selectively disabling command bar buttons
Support · Dec 3, 2010Hello,
Yes, you can hide the selective Toolbar items without any problem using our DynamicPDF Viewer product. You will need to use the ShowToolbarButton method of the DynamicPDF Viewer control which takes index of the Toolbar item and the boolean value to make it visible or invisible. Pleaes make sure that you are setting all these properties to the Viewer control in Form Load event or in the BeforeDraw event of the DynamicPDF Viewer control. Also below is the sample code for hiding Open Toolbar item.
axDynamicPDFViewer1.ShowToolbarButton(0, false);
Thanks,
ceTe Software Support Team.