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.
Dim layout As PDFXEdit.IUIX_Layout = Me.docPreview.Inst.MainFrm(2).View.DocViewsArea.Panes.Layout
Dim pane As PDFXEdit.IUIX_Obj = Me.docPreview.Doc.ActiveView.CommentsView.Obj
Dim paneLI As PDFXEdit.IUIX_LayoutItem = layout.GetItem(pane)
paneLI.SetStyle(CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_NoClose), CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_NoClose))
You will have to distinguish between the panes that belong to the Documents View and to the Main View. Basically this code should have worked, though it does not:
With your code specified, I cannot seem to make the pane topmost, if this is not possible then even to make the pane show an icon in Taskbar would be another solution.
Your code does work, but only if the Stamp Palette is docked. If you make it a floating dock pane then the code does not work. Just thought I'd mention it so you can relay this to your developer.