By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,968 Members | 1,180 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,968 IT Pros & Developers. It's quick & easy.

slow keyboard response after adding on keydown event

Expert 100+
P: 1,221
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
Share this Question
Share on Google+
7 Replies


FishVal
Expert 2.5K+
P: 2,653
Hi, Jim.

Could you post the code of KeyDown event handler?

Regards,
Fish
Jan 25 '08 #2

Expert 100+
P: 1,221
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
Expert 5K+
P: 8,679
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
Expert 2.5K+
P: 3,532
Well, a "fish" eye sees more than most!

;0)>
Jan 26 '08 #5

ADezii
Expert 5K+
P: 8,679
Well, a "fish" eye sees more than most!

;0)>
Sounds fishy to me, linq! (LOL).
Jan 26 '08 #6

FishVal
Expert 2.5K+
P: 2,653
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
Expert 5K+
P: 8,679
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

Post your reply

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