>>>I have a container with many grids, all grids have different work.
>>>i want to close any active object with container.
>>>
>>>i do not want like this.
>>>thisform.container7.Visible=.f.
>>>thisform.container7.grid2.Visible=.f.
>>
>>Wait... if you make container visible, than any object in it should also become invisible. So second line is unnecessary.
>>
>>If you want to show/hide many objects at the same time, just put them inside the same container and don't worry - you only show and hide containers, and their members show and hide with them.
>
>If you make container visible, then not necessarily all objects will become visible. The opposite is true - if the container is invisible, then all objects inside it would not be visible regardless of the status.
Assuming they have .visible=.t., and that their coordinates put them inside the container (i.e. no negative coordinates, or larger than the container itself - which can be done), objects in a container should become visible when the container becomes visible.