>In the toolbak button click event: >FOR EACH oform IN _screen.Forms > IF LOWER(oform.name)="mainform" > oform.release() > ENDIF >NEXT >No, it does not work. Main form is not released and still shown on the screen. As I said in my original message the toolbar is shown in top-level form - the one I am trying to close clicking on a toolbar.