Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My KeyPress not Pressing!
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
My KeyPress not Pressing!
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:
01427928
Views:
154
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!
Tommy Tillman A+ NetWork+ MCP
Next
Reply
Map
View

Click here to load this message in the networking platform