General information
Category:
Forms & Form designer
Hi David,
>Two problems with that code. It won't work if the user hits the Escape key. And it may accidently trigger if the user even just has the mouse sitting over the top of the cancel control without clicking it.
Yeah, But the last key would only work in the Cancel example (yeah, I know thats what he wanted). To be completely true as far as: "How can I tell what button was clicked in an event?" You would have to check either the sys(1270) or the lasykey detecting Alt combintation, or simply the activecontrol, but in ,say the Valid, the ActiveControl hasn't been updated yet, right?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only