General information
Category:
Forms & Form designer
Bob, put this into .GotFocus (or, if you use VFP3, put the grid inside the container and use container's GotFocus event):
ON KEY LABEL Ctrl+INS APPEND BLANK
And in the .LostFocus:
ON KEY LABEL Ctrl+INS
>I have a grid and I want to insert a new record when the user presses a certain key (like ^INS) with *any* part of the grid selected. I know how to use the KeyPress event in the text object of a column but I don't want to force the user to have that particular text item selected. I don't see a more global "KeyPress" event available. How can I do this?
>
>TIA, Bob Alei
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only