>I put a similar code in our DataEntry form class for editboxes and textboxes because if you're sitting on the editbox, making changes and closing a form using top right corner, that change is not considered...
Of course.
If those issues are handled in the form's base class, you will never have that problem again
If I remember correctly the Tastrade sample tries to deal with those also (it does not use SetFocus)
Gregory