FOR EACH loControl in This.Parent.Controls IF loControl.TabIndex = This.TabIndex + 1 loControl.SetFocus() ENDIF ENDFORpamela
>container.cmdButton.click() > ..... > this.parent.Remove_Focus() >endproc > >container.Remove_Focus() > ???? && move focus to a control not in the container > && preferably the one next in tabindex order >endproc > >container.GotFocus() > if <some condition> > this.cmdButton.enabled = .f. > this.other_control.enabled = .t. > else > this.cmdButton.enabled = .t. > this.other_control.enabled = .f. > endif >endproc >>TIA