Gives focus to the control.
This functionality is supported only if you are using the Open Agent.
control.SetFocus ( )
SetFocus gives the input focus to the specified control, which means it makes it the control to which the GUI directs keystrokes.
It is not necessary to call SetFocus before using any of the functions that operate on controls. Call it in cases where you plan to use TypeKeys to pass keystrokes to a pop-up window, and you need to display the window first.