>>The two containers are made visible/invisible when required, unfortunately ZOrder doesn't work for this, which is why I'm sure it's a bug. I would really like to get it fixed though, because I want to use list boxes rather than grids.
>>
>>I suppose I could change their position on the screen programmaticaly!
>>
>>Thanks
>>Kev
>
>That would be my suggestion: Instead of (or in addition to) making them visible/invisible as required, get it completely out of the way by setting the invisible control's Top higher than the form Height
He'd have to remember the original position for that, which would require an additional property for each container, i.e. class-level stuff. A simpler way would be
thisform.ContainerToVanish.Top=-thisform.ContainerToVanish.Top
Could do it with the .Left as well. To bring it back to (visible) existence, just repeat this. OK, this wouldn't work if .top was not greater than .height, so
with thisform.ContainerToVanish
.Top=-.top-.height
endwith
And to restore it to visible it's the same again (check the math, should be right, but I've had only one coffee this morning):
with thisform.ContainerToRestore
.Top=-.top-.height
endwith