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 endprocTIA