|
-
September 28th, 2001, 07:17 AM
#1
GotFocus vs LostFocus problem
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|