◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Occurs when an object receives the focus, either by user action - for example, when the user clicks or tabs to the object - or by changing the focus through the SETFOCUS method. Note: A form receives the focus only when it has no controls, or when all visible controls are disabled or invisible. SUB Form_GotFocus () SUB ctlname_GotFocus ([Index AS INTEGER]) ■ Index Uniquely identifies a control in a control array Applies To ◄Check Box Control► ◄Combo Box Control► ◄Command Button Control► ◄Directory List Box Control► ◄Drive List Box Control► ◄File List Box Control► ◄Form► ◄Horizontal Scroll Bar Control► ◄List Box Control► ◄Option Button Control► ◄Picture Box Control► ◄Text Box Control► ◄Vertical Scroll Bar Control► See Also ◄ActiveControl Property► ◄ActiveForm Property► ◄Creating a Control Array► ◄Enabled Property► ◄LostFocus Event► ◄SETFOCUS Method► ◄TabIndex Property► ◄TabStop Property► ◄Visible Property►