Back To Front (MSFlexGrid)

My Form containts a MSFlexGrid (MSFG) and a textbox (txtCell). I want to use txtCell to update value for MSFG.

This code in MSFG.EnterCell method:

With This

Thisform.txtCell.Visible=.T.

Thisform.txtCell.Move .Top+.CellTop, .Left+.CellLeft, .CellWidth, .CellHeight

Thisform.txtCell.ZOrder

Thisform.txtCell.SetFocus

EndWith

But MSFG is always front of txtCell.

Please help me! Thanks!




Answer this question

Back To Front (MSFlexGrid)

  • figuerres

    Unfortunately that's the case with activex controls. However you can put the text in front if you put it on a separate form (always on top). 

    PS: IMHO use MSHFlexGrid instead. It does all what MSFlexGrid does (and more) and is more stable/reliable.


  • Back To Front (MSFlexGrid)