Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My KeyPress not Pressing!
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01427928
Message ID:
01427932
Views:
52
Check Grid that allows sorting by clicking on the header Download #37293 for code binding column's textboxes to grid's methods.

>Hi Gang!
>
>I have a form with a grid on it.
>
>I want the grid's keypress event to fire and capture the ENTER key when it is pressed on a row.
>
>Here is the code in the Keypress Event
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>*If ENTER key pressed, the click the checkbox for this row...
>IF nKeyCode = 13
>	This.column20.chkSelected.Click
>ENDIF 
>
>
>The Form's KeyPreview Property is FALSE.
>
>When I run the form and press the ENTER key when the grid has focus, the Keypress Event does not Fire.... I put a break on the IF nKeycode = 13 line, but it does not stop there. I even put a SET STEP ON in the event.
>
>So...?????? Any ideas why the Keypress Event does not fire when I press any key in the grid?
>
>Thanks!
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform