handling function key press

You need to set

KeyPreview=True

for your form. Otherwise key press is swallowed by the control that has focus.

Leave a Comment