473,407 Members | 2,598 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,407 software developers and data experts.

slow keyboard response after adding on keydown event

1,271 Expert 1GB
I've got an app in Access 2003 running on XP. I added key preview and on keydown event to a form to capture and process and F11 key. Now there is a noticeable delay between pressing any key and the appearance of the key's character on the form.

Why is it so slow? There are other Fkeys being processed in this app (I'm modifying a pre-existing app) and I don't see this symptom anywhere else.

Thanks,
Jim
Jan 25 '08 #1
7 2437
FishVal
2,653 Expert 2GB
Hi, Jim.

Could you post the code of KeyDown event handler?

Regards,
Fish
Jan 25 '08 #2
jimatqsi
1,271 Expert 1GB
Fish,
You may have just gotten your easiest solve ever.:) While dutifully collecting my code for you, I actually looked at it. Saw the problem then right away.

I had put a select case in to catch F11 and F12. While I was coding the F11 stuff I realized a lot of that code was pertinent to both F11 and F12 so I moved it above the select statement. So of course all that code I moved was getting executed before the key was evaluated.

Stupid error that I should have seen right away. In this case I was trying to catch keystrokes for the first time, so I was too quick to think there was something I didn't know about that was causing it.

Thanks for the reply.

Jim



Hi, Jim.

Could you post the code of KeyDown event handler?

Regards,
Fish
Jan 25 '08 #3
ADezii
8,834 Expert 8TB
Fish,
You may have just gotten your easiest solve ever.:) While dutifully collecting my code for you, I actually looked at it. Saw the problem then right away.

I had put a select case in to catch F11 and F12. While I was coding the F11 stuff I realized a lot of that code was pertinent to both F11 and F12 so I moved it above the select statement. So of course all that code I moved was getting executed before the key was evaluated.

Stupid error that I should have seen right away. In this case I was trying to catch keystrokes for the first time, so I was too quick to think there was something I didn't know about that was causing it.

Thanks for the reply.

Jim
That FishVal is really good, isn't he! (LOL).
Jan 26 '08 #4
missinglinq
3,532 Expert 2GB
Well, a "fish" eye sees more than most!

;0)>
Jan 26 '08 #5
ADezii
8,834 Expert 8TB
Well, a "fish" eye sees more than most!

;0)>
Sounds fishy to me, linq! (LOL).
Jan 26 '08 #6
FishVal
2,653 Expert 2GB
What is the use?

People come, admire me, praise me but, for some reason, never bring money.
SILLY HUMANS! Bring me even more money, you'll see how I appreciate it.

Kindest regards,
Fish
Jan 26 '08 #7
ADezii
8,834 Expert 8TB
What is the use?

People come, admire me, praise me but, for some reason, never bring money.
SILLY HUMANS! Bring me even more money, you'll see how I appreciate it.

Kindest regards,
Fish
I run that by Mary, and see if she'll give you a raise but I wouldn't hold my breath! (LOL).
Jan 26 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Lachlan Hunt | last post by:
Hi, I've been looking up lots of documentation and trying to work out a cross-platform method of capturing a keyboard event and working out which key was pressed. From what I can find, there...
3
by: Tanya | last post by:
I use a touch screen and I want to simulate a keydown event every time the user starts typing. Is it possible or I have to use API calls? Posted Via Usenet.com Premium Usenet Newsgroup Services...
1
by: Emil | last post by:
I've written a simple application. It consists of main window, menu and a label. I added event handler to the main form (KeyDown), so when I push a key on the keyboard, then it's key code should be...
1
by: Stefan | last post by:
I'd like to display the keyboard navigation indicators in my C# application without the user having to press the Alt key and regardless of the machines global setting (Hide keyboard navigation...
1
by: Damir | last post by:
Hallo everybody Does anyone knows how to access Keyboard buffer? At the moment I'm catching KeyDown event of the form, and waiting for carrige return or return key, but sometimes the Keyboard...
1
by: JDeats | last post by:
I have a WinForm with a single command button in the middle, I have added a KeyDown event handler to the form and the method for this is: private void Form2_KeyDown(object sender, KeyEventArgs e)...
12
by: =?ISO-8859-1?Q?Joaqu=EDn_Zuazo?= | last post by:
I'm trying to find what character was pressed, using an accent with a dead letter, e.g an á, on an input box. I have made an small program to check the keyboard events keydown, keypress and...
13
by: andypb123 | last post by:
Hello, The onchange event fires in IE6 in a SELECT element when scrolling through the list with the up and down arrows on the keyboard. In Firefox it only fires after you hit the enter key, which...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.