Examples: Focus method


In the following example, the Focus method redirects the focus to the Shipping Method field when the user moves out of the Customer ID field:

Private Sub CustomerID_AfterUserChanged()
	'Move the focus to the field.
	ShippingMethod.Focus
End Sub

Using the setvalue parameter, the Focus method redirects the focus and sets the value of the Shipping Method field:

Private Sub CustomerID_AfterUserChanged()
	'Move the focus to the Shipping method field, then set the value 
	ShippingMethod.Focus("UPS BLUE")
End Sub


Documentation Feedback