Sorry! I was describe not right with my idea.
My form has a textbox (txtCell) and a MSFlexGrid (MSFG). When a cell of MSFG focused, txtCell will visible and locate on MSFG.
Thisform.showTxtCell()
With Thisform.MSFG
Thisform.txtCell.Move .Left + .CellLeft, .Top + .CellTop, .CellWidth, .CellHeight
Thisform.txtCell.Text = .Text
Thisform.txtCell.SelLength = Len(.Text)
End With
Thisform.txtCell.Visible = .T.
Thisform.txtCell.SetFocus
But MSFG is always front txtCell. I used zOrder method, but not successful. At runtime (not design time).