>This still allows the user to highlight the editbox content, but it did do away with the blinking cursor.
To do completely what you want, I think you'll have to Setfocus elsewhere, then run your code. It can be a little tricky with grids, but can be done.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.