Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Characters
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00101034
Message ID:
00101449
Views:
17
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
Map
View

Click here to load this message in the networking platform