Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
layout = Me.docPreview.Inst.MainFrm(PDFControlNum).View.DocViewsArea.Panes.Layout
For Each docLayout As PDFXEdit.IUIX_LayoutItem In layout.Root
docLayout.SetStyle(False, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_AddNewTabBtn))
docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_HideCloseTabsBtn))
docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_NoFloat))
docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_HideOneTab))
docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_NoDock))
docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_TabsNoReorder))
docLayout.SetStyle(False, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_CloseActiveTabBtn))
Next
Sorry Alex, I should have been clearer. This did work until I upgraded to PDF Xchange Editor SDK 8.0.332, now it does not seem to remove the close document "X" on the far right of the tab control.