Try to set the focus to the control.If focus cannot be set (eg. it is disabled or hidden) then ignore the error. Returns True if focus was set successfully.
The control
TrySetFocus txtDate