Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing keystrokes entered in a control
Message
 
 
To
03/10/2004 00:02:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00948285
Message ID:
00948286
Views:
12
>I would like to intercept and modify keystrokes entered into a textbox. I can intercept them with the KeyPress event and I can then write the modified text into the textbox.value. However after leaving the KeyPress event the original key's value is also placed into the textbox. It isn't sufficient to just replace the original key in the keyboard buffer with the new value as I want to place the new value to the left of the existing characters in the textbox. How can I inhibit the original keystrokes?

Greg,

Add NODEFAULT to the code in the Keypress to prevent keystroke to be passed to textbox.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform