G
Guest
Hello,
I have a form and when the user presses the F3 key I want to set the focus
to a textbox where the user can enter a search query.
I figured this had to be really straightforward, but it turns out it isn't.
I tried putting an eventhandler KeyDown on the form, but it never gets
called for the F3 key.
Also tried KeyUp, KeyPress, ProcessDialogKey, ProcessDialogChar,
ProcessDialogCmd, PreProcessMessage. Nothing worked.
I also tried it with KeyPreview set to true on the form.
Strange thing is, that Shift-F3 works, but F3 doesn't.
Now I don't know what to do else.
Any ideas?
Best regards,
Ike Casteleyn
I have a form and when the user presses the F3 key I want to set the focus
to a textbox where the user can enter a search query.
I figured this had to be really straightforward, but it turns out it isn't.
I tried putting an eventhandler KeyDown on the form, but it never gets
called for the F3 key.
Also tried KeyUp, KeyPress, ProcessDialogKey, ProcessDialogChar,
ProcessDialogCmd, PreProcessMessage. Nothing worked.
I also tried it with KeyPreview set to true on the form.
Strange thing is, that Shift-F3 works, but F3 doesn't.
Now I don't know what to do else.
Any ideas?
Best regards,
Ike Casteleyn