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
ike - 27 Oct 2005 13:06 GMT
Hello,
Since everything works fine on an empty form, I did some more investigation.
My toolbar was blocking the F3 key from happening.
Best regards,
Ike
> Hello,
>
[quoted text clipped - 17 lines]
> Best regards,
> Ike Casteleyn