At the beginning of the button click event, place a flag, flagbuttonclick=true. At the beginning of the focuschange sub of the text box, place an if flagbuttonclick=true then return else perform your checks here.
Declare the flag at your sub globals and don't forget to call any validation routine from your button click if needed.