I have always had bad luck with lost focus and got focus events. They seem very unpredictable to me. So I always do it in code instead.

Sorry, just my two cents.