My existing code is below: As you can see it is consistent with your directive, However this is not working when viewing a form with TDF Viewer control in VS Designer as I stated. I did try using "**ComponentPro.Licensing.Saml.LicenseManager..SetLicenseKey(ComponentPro.LicenseKey.Key)**;" as you suggested but that namespace is unknown to the PDFViewer lib. Please advise. What namespace is "*Saml*"? static void Main() { ComponentPro.Licensing.PdfViewer.LicenseManager.SetLicenseKey(ComponentPro.LicenseKey.Key);// PDFViewer license key: Application.ThreadException = new ThreadExceptionEventHandler(Application_ThreadException); // capture any thread exception for the log Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); AppDomain.CurrentDomain.UnhandledException = new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } Scott 7/14/2022 5:18:53 PM |