Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KeyPress Event with Ctrl+N
Message
From
15/09/2004 10:15:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
KeyPress Event with Ctrl+N
Miscellaneous
Thread ID:
00942387
Message ID:
00942387
Views:
70
I have a form with KeyPreview = .T. and with a KeyPress event method that processes Ctrl+Key keystrokes. Most Ctrl+Key sequences work as expected, but when I use Ctrl+N I get a strange anomoly.

In my KeyPress event method Ctrl+N should create a new record in my current work area and refresh all controls (which it does fine). But, if I have a textbox as the first control on the form, the character CHR(14) is inserted in the textbox value (appears as vertical bar). I can trap this condition by checking for LASTKEY() = 14 in the interactive change event of the textbox, then clearing the textbox value. No other control sequence does this (that I know of).

CLEAR TYPEAHEAD or KEYBOARD "" CLEAR have no effect either.

Does anyone know why this happens and how I can avoid it?

Thanks,
Tod
Next
Reply
Map
View

Click here to load this message in the networking platform