Information générale
Titre:
Intercept Ctrl-A, Ctrl-C etc in ListBox control???
The Keypress event for a ListBox does not seem to fire when the user hits Ctrl-A, Ctrl-C, or Ctrl-V. I would like to use these keystrokes for their usual action when the listbox has focus (the listbox is on a relatively complex form):
Ctrl-A - Select all items
Ctrl-C - Copy items to clipboard
Ctrl-V - Paste items from clipboard
This functionality is already built in and working via a rightclick pop-up menu. So I only need to intercept these keystrokes and call the appropriate routines behind the scenes. But the keypress event does not fire for these keystrokes (it does fire for visible ascii characters).
Any suggestions much appreciated. Thanks.
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