473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Trap Key Press Events

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.
Nov 17 '05 #1
4 2275
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...haracters.html
"Rich" <Ri**@discussions.microsoft.com> wrote in message
news:9F**********************************@microsof t.com...
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.

Nov 17 '05 #2
Thanks for responding, I see in my post I failed to mention I am referring to
events in WinForms.

"Rich" wrote:
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.

Nov 17 '05 #3

Rich wrote:
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

Nov 17 '05 #4
Thanks, the KeyPreview was the part I was missing now I can start wiring
things in.

"Rich" wrote:
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.

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave | last post by:
Hi, I'm developing a testing application where i have to trap every keyboard press event. Which windows API can i use to trap all keyboard events. Thanks in advance - Dave
2
by: Fred Sawtelle | last post by:
I'm trying to trap the Enter key in any of the key events (keypress, keydown, keyup) of the Windows .Net combobox control. Try as I might, I cannot get the event to respond to an Enter key press;...
5
by: Vince C. | last post by:
Hi. I'd like to trap ADO Recordset object events in my ASP script (either VBS or JS, no preference). I've tried (in VBS) writing a Sub rs_RecordChangeComplete( adReason, cRecords, pError,...
4
by: PiedmontBiz | last post by:
Greetings I have written an online survey with 110 questions. I use javascript to cycle thru all the questions which are displayed in an iframe. I keep track of the question number using a...
7
by: Thorbjørn Jørgensen | last post by:
Hi I am currently creating a WLAN simulation problem and have encountered a problem... I have two classes (Channel and RadioLayer), and for instance create the following objects: Channel...
2
by: David McDivitt | last post by:
Another fellow here must modify an application. On the web page, pressing the enter key causes the form to submit. What users want is to remove enter key functionality from within a textarea and...
8
by: =?Utf-8?B?RyBIdXN0aXM=?= | last post by:
This is the 2nd time posting so sorry for duplications. I am using VB.NT 2005 & a standard Combobox. I've been wracking my brain over this problem for a over a month & cannot seem to find a way to...
2
by: Charles Law | last post by:
I'll kick myself when you tell me, but ... I have a user control on a form, and I want the user control to see the arrow keys when I press them. If I press just about any other key the control's...
3
by: Johnny | last post by:
Hi there, Does anyone know how I can trap F1 to activate help when a menu item is active, preferably without creating a "ToolStripMenuItem" derivative (so I can quickly wire this up using the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.