Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable f1 key

Status
Not open for further replies.

vbc22

Technical User
Dec 4, 2004
70
0
0
CA
how do i prevent the f1 key's help from popping up?

I've placed code on the form's key_press procedure, which captures the F1 key being pressed. I've routed this to run a sub, but then afterwards, it pops up the Help.

How can i disable that?
 
Try creating a macro called "Autokeys" (you can find help on setting this up in the help file by using that as the keyword). I use this to assign specific actions to a "F" key but you can use it to take an ability away also.

Hope that helps

:)
 
How are ya vbc22 . . . . .

[blue]mcelligott[/blue] is right on target. In case your having problems setting it up . . .. do this:
[ol][li]In the [blue]Macros Window[/blue] click [purple]New[/purple].[/li]
[li]In [blue]Macro Design View[/blue] click [purple]Save[/purple]. Name the macro [purple]AutoKeys[/purple] (spelling is important).[/li]
[li]The first line in macro design view should look like the following:
Code:
[blue][tt]Macro Name    Action
**********  **********
{F1}        StopMacro[/tt][/blue]
The brackets around F1 are the curly brackets [purple]{}[/purple][/li]
[li]Save & close the macro . . .[/li][/ol]
[blue]The F1 key should now be inactive! . . . . . [/blue]

Calvin.gif
See Ya! . . . . . .
 
thanks, i got it to work!

I appreciate the help. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top