Hide "open" button

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Viewer for .NET (v2)  /  Hide "open" button

DynamicPDF Viewer for .NET (v2) Forum

 Jan 18 2019 10:30 AM
Howdy,
I just found your pdf viewer, and it's the best that exists on the market!! thanks for making it available for free.

For me, to make it 100% perfect, i just need to hide ou inactive the "open" button, is this possible?
The pdf files are being loaded automaticaly om the form load.

Thanks in advanced,
Jorge Bastos
 Jan 18 2019 11:43 AM
Posted by a ceTe Software moderator
Hello Jorge,
 
Yes, you can hide the Open in the toolbar by seting the Visible property of the toolbar item to false. Below is the code sample to hide the Open button in the Viewer toolbar.
 
  ToolStrip toolbar = (ToolStrip)pdfViewer1.Controls[ "viewertoolbar" ];
  string str = toolbar.Items[0].Name;
  toolbar.Items[0].Visible = false;
 
You can also replace the toolbar if you want to customize this further.

Also please note that DynamicPDF Viewer for .NET is only free to use in evaluation mode and that we add an evaluation watermark on the PDFs. In order to remove the watermark, you will need to purchase a license and add the license key to the application. You can refer to the documentation on licensing and pricing details on our website here.
 
Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 10:35 AM.