"Mike L" <Ca***@nospam.nospam> wrote in message
news:EE**********************************@microsof t.com...
When the user presses F12, it would be like if the user click on the
"Complete" button.
In other words, when the user presses F12, I want the code be hide my
button's "on_click" to run.
Is this WebForms or WinForms? WinForms it's easy, just set the forms
KeyPreview property to True, catch the KeyUp event for the form, check for
KeyCode F12, and then call the buttons PerformClick method :)
WebForms is a lot trickier (The way I know how to do only works in Internet
Explorer 5.0+ if I remember correctly).
HTH,
Mythran