Set focus to an object.

Text 1:

Text 2:

Button 1:

Message box: