so I have theis .net app that creates a fancy block library in autocad. But it has no X close button on it.

I have added the code

paletteset.style = Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton

to the palete set but it doesn't seem to do anything. Is there something I need to add in addition to this in order to get my X close button?