Trap Key Press Events

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I would like to setup some events tied to the function keys but I'm not sure
where to start; any help would be greatly appreciated.
 
It's done using attributes in the HTML. Check out this script [1] and you'll
get some insight. Then all you'll need to do is learn to pass what is
captured on the client to the server.

// To get the client-side script for the function keys
search: which function key was pressed javascript

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1]
http://www.mediacollege.com/internet/javascript/form/limit-characters.html
 
Thanks for responding, I see in my post I failed to mention I am referring to
events in WinForms.
 
Rich said:
Hi,

I would like to setup some events tied to the function keys but I'm not sure
where to start; any help would be greatly appreciated.

The KeyDown and KeyPress events are available for the form or any of
its
controls. You will need to set KeyPreview if you want to get them from
a
control though. If you need more information, feel free to ask.

Matt
 
Back
Top