SetFocus Method
Object List Next Object
Defined By: Window
Description:
Gives the keyboard focus to the specified form or control. Once focus is given
to a specified object, all user keyboard input is directed to it.
Declaration:
Sub SetFocus ()
Details:
The object argument may specify a top-level form or control, or may be a qualified name
that refers to an embedded form or control. This form or control must be
visible and capable of receiving the focus (Enabled=True). The SetFocus method can be
used on all controls with the exception of Label, Frame, and Image.
Focus can also be given to an object through user input, such as pressing the
TAB key.
See Also:
Enabled property