advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SETFOCUS Method Details
  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.