◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── [form.][ctlname.]SETFOCUS Usage Notes ■ The "focus" is the ability to receive user input through the mouse or keyboard. See: ◄Focus Definition► ■ When SETFOCUS is used on a form that contains controls, the form's default control receives the focus. See: ◄Default Property► ■ When SETFOCUS is used on a form that has children, the focus always goes to the child form. See: ◄Parent and Child Relationships► ■ After SETFOCUS is executed, user input is directed to the specified form or control. ■ Disabled and invisible objects cannot receive the focus. See: ◄Enabled Property► ◄Visible Property► ■ If SETFOCUS is used on a control that cannot accept the focus, then the focus goes to the next control in the tab order. See: ◄Tab Order Definition► ◄TabStop Property► ■ Using SETFOCUS without specifying an object sets the focus to the form containing the statement.