>Hi Surgey,
>
>Thanks. From the threads you gave me I see that having a top level form is a problem. Unfortunately I have a top level form. I see MSDN talks about designing a state manager to know which is the active form and wether the toolbar should be displayed. But I have no idea where to start with this, how to create etc. My main problem is that I have a top level form with a menu. When I open a form to capture data for example I create a toolbar (add,change,etc). If I minimize that form I want to hide the toolbar if the current active form does not require it. I have added a property to each of my forms to determine if they need this toolbar. In the refesh method of the toolbar I use "_screen.activeform.property" to check if I should hide the toolbar or not. But then I get the error "Active.Control" is not an object. How do I control when the toolbar should be visible or not
move the logic into the form:
toolbar.visible = this.property
toolbar.visible = .F.