I'm stuck here,

I have some textboxes on a form, and two buttons. One of them is the Cancel button.
Some of the LostFocus events of the textboxes do some checks, and may prompt the user for actions. The problem is when a user presses the cancel button while in one of those textboxes, the lostfocus event fires. What it needs to do is do nothing, since the user pressed cancel. However, the lostfocus event of the textbox fire before the gotfocus event of the command button, so i'm not able to set a flag or something indicating the user is cancelling.

Any thoughts would be welcome

Tom Cannaerts
[email protected]

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook