Hello Cor, >>i supose you have to "dispose" first te object ??? >>ocontrl.dispose >>oDocDlg.removeControl(oContrl) > > But this does work.
That's somewhat weird, as manual disposal should never be necessary. Your original code was correct - removing the control model from the dialog model should automatically also remove the control from the dialog. If this isn't the case, please submit an issue. Thanks. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
