slow keyboard response after adding on keydown event

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jimatqsi
    Moderator Top Contributor
    • Oct 2006
    • 1293

    slow keyboard response after adding on keydown event

    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
  • FishVal
    Recognized Expert Specialist
    • Jun 2007
    • 2656

    #2
    Hi, Jim.

    Could you post the code of KeyDown event handler?

    Regards,
    Fish

    Comment

    • jimatqsi
      Moderator Top Contributor
      • Oct 2006
      • 1293

      #3
      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



      Originally posted by FishVal
      Hi, Jim.

      Could you post the code of KeyDown event handler?

      Regards,
      Fish

      Comment

      • ADezii
        Recognized Expert Expert
        • Apr 2006
        • 8834

        #4
        Originally posted by jimatqsi
        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).

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          Well, a "fish" eye sees more than most!

          ;0)>

          Comment

          • ADezii
            Recognized Expert Expert
            • Apr 2006
            • 8834

            #6
            Originally posted by missinglinq
            Well, a "fish" eye sees more than most!

            ;0)>
            Sounds fishy to me, linq! (LOL).

            Comment

            • FishVal
              Recognized Expert Specialist
              • Jun 2007
              • 2656

              #7
              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

              Comment

              • ADezii
                Recognized Expert Expert
                • Apr 2006
                • 8834

                #8
                Originally posted by FishVal
                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).

                Comment

                Working...