FocusIn Event

The FocusIn event is fired on a control any time the control gains the input focus. This can happen by virtue of the user clicking the control or by tabbing to the control.

Supported By:

 

FocusIn events are supported by check boxes, dropdown boxes, dropdown edit boxes, radio buttons, text boxes, and multi-line text boxes.

 

 

EventArgs Properties:

 

None

 

 

 

Example:

 

The following code can be used to pop-up a selection dialog when the input focus enters a text box named TextBox2. The text box is populated based on the user's selection.

 

 

If TextBox2.Text = " " Then

If Macro.Confirm ("Is the borrower married?") Then

TextBox2.Text = "Yes"

Else

TextBox2.Text = "No"

End If

End If