Avoid calls to SetFocus when they are unnecessary.