General information
Category:
Forms & Form designer
Thanks Again! I would have assumed that I had to place the NODEFAULT
in the GotFocus Event of the Text Box Control. I had no idea that
I could use it where you said I could... Thanx Again...
>Bob,
>
>When you press a key several things happen. If you have the KeyPreview property set to .t., which enables the Form's KeyPress event, the Form's KeyPress Event Fires with the key you pressed. Then, the control's KeyPress Event Fires with that keystroke as well. NoDefault tells a method not to do what it's supposed to do. So, a NoDefault in a KeyPress event basically flushes that keystroke out of the buffer and let's you do whatever you want to do. Please note that these are not the only methods that fire upon a Keypress and there mey be other methods that fire between these methods. But these are the only ones were concerned with for this situation. NoDefault can be used in any method in which you don't want the default action to take place.
>
>HTH
Previous
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