AnsweredAssumed Answered

vrf Assign Function Key to .NET button?

Question asked by VRFuser on Jul 28, 2008
Hello VRF!

I have an issue on a .NET button.

Is it possible to assign a function key (e.g. F1) globally to a .NET button?

Mouseclick on the button works fine, because I created the event-handler “Button_Click”.
Now I would like to have the same reaction by pressing F1, even if the Button has no focus.
(The event-handler “KeyPressEventArgs” and “KeyEventArgs” only work if focus is on the button.)


In principle I will need the functionality of the standard Vee “OK” Button, but I am using this in a loop where I need the object orientated functionality.

Has anybody an idea to solve the problem?

Thanks in advance!


Micro Perforation Engineering GmbH
Andre Kimmig
Industriestrasse 12        PB 10 11 80
D - 44628 Herne           D - 44601 Herne
Tel.  : + 49 2323 145 - 0
Ext.  : +49 2323 145 - 223
Fax.  : +49 2323 145 230
UST-IdNr.: DE811476619
Steuer-Nr.: 5325/5774/2144
Handelsregister: AG Bochum, HRB9403 
Geschäftsführer : Michael Benkert, Michael Bick, Martin Slonina
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete the
original. Any other use of the email by you is prohibited.

You are currently subscribed to vrf as:
To subscribe please send an email to: "" with the word subscribe in the message body.
To unsubscribe send a blank email to "".
To send messages to this mailing list, email "".
If you need help with the mailing list send a message to
Search the "unofficial vrf archive" at "".
Search the Agilent vrf archive at "".