How to prevent app to execute next line code when setfocus failed?

Printable View