>I try to use this following program section in the Refresh of my Form :
>
>IF glProj = .F.
> Thisform.Grid1.Column1.Visible=.T.
> Thisform.Grid1.Column1.Enabled = .T.
> Thisform.Grid1.Column1.SetFocus
>Endif
>
>and the result is :
>
>" Cannot call Setfocus from within a When,Valid,Rangehigh or Rangelow event"
>
>Moreover, this occured in the "Refresh" and not in the Valid or When
>
>Thank in advance for any hints or suggestions,
>Van Son Nguyen
Van,
Is the form itself called from the Valid event on another form? Check further up the program stack.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao