Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KeyPress Event with Ctrl+N
Message
From
15/09/2004 10:21:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/09/2004 10:15:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00942387
Message ID:
00942392
Views:
12
>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

Nodefault

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform