Information générale
Catégorie:
Codage, syntaxe et commandes
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement