>Nick,
>
>Sorry to bother you again, I have made the container at design time and put it in the appropriate size and positioned over the grid. How do I call the container.ZOrder(0) method, I've tried to put the code
>'this.cntGridCover1.Zorder(0)' in the textbox->lostfocus event after the grid code but error occur ('Unknown member GRID1'). I think that the container can not identify the grid.
>
That should be:
THISFORM.cntGridCover1.Zorder(0)
(or whatever proper reference you might have to your container - like
THISFORM.PageFrame1.Page1.cntGridCover.Zorder(0) )
Also, trace your LostFocus code and check where is your grid is placed exactly.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison