General information
Category:
Coding, syntax & commands
I want to enable some keyboard shortcuts on a form I am working on. I have done this by placing a do case statement in my forms keypress event and searching on nKeyCode. This has worked for me in general with the exception of when a control is in focus that responds to the shortcut that I'm trying to use. In that case the control handles the keyboard shortcut before the forms keypress event ever sees it. Is there a way to override the kepress events in the controls on the form or is there in general a better way to deal with keyboard shortcuts? Following are a couple of shortcuts that are giving me problems:
ctrl-rightarrow - advance to next record
ctrl-leftarrow - advance to previous record
ctrl-uparrow - advance to first record
ctrl-downarrow - advance to last record
ctrl-f - find records
etc....
Thanks in advance for your help,
Dan Christensen
Next
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