You can use the Palette Editing VIs to edit the Controls or Functions palette set programmatically.
Note The LabVIEW Run-Time Engine does not support the Palette Editing VIs. Error -4406 occurs if you call the Palette Editing VIs in the LabVIEW Run-Time Engine.