Re: Question about On key F10

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Dan Freeman (spam_at_microsoft.com)
Date: 12/13/04


Date: Mon, 13 Dec 2004 13:35:06 -0800

You don't. F10 is reserved by Windows. (Try it in Word. It does the same
thing there.)

Dan

Eliseo Negrin wrote:
> Hello!
>
> I have a form in which I have assigned a method to be executed when I
> press F10. When I press F10 instead of calling the
> Form.KeyPress method and then the function that was assigned to the
> code, the cursor goes to the FILE in the main menu.
>
> I tried ON('KEY', 'F10') to see what was assigned to the F10 but it
> returns nothing.
>
> 1) How can I assign the F10 to be executed with the form instead of
> going to the main menu ?
>
> Thanks
> Eliseo Negrin
>
>
> *----------------------------------------------------
> *Code for KeyPress of the form is below
> *----------------------------------------------------
>
> KeyPress
> Lparameters nKeyCode, nShiftAltCtrl
>
> Do Case
>
>
> *---------------------
> * F10 - Clar all line
> *---------------------
> Case ( nKeyCode = -9 )
>
> NoDefault
> ThisForm.ClearTag()
>
>
> EndCase



Relevant Pages

  • Re: Question about On key F10
    ... It is never wise to muck with ... keystrokes that are reserved by the system. ... Dan ... Eliseo Negrin wrote: ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Question about On key F10
    ... Is there any way to disable the F10 so it does what i have in my fox ... Eliseo Negrin ...
    (microsoft.public.fox.programmer.exchange)