dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: UserControl.KeyDown (...Arrow Keys)

  1. #1
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    UserControl.KeyDown (...Arrow Keys)

    .NET 3.5 on an XP/DELL D520 Laptop.

    My main Form has a TabControl on it. One of the tabs has a UserControl on it. I capture the KeyDown event of that UserControl.

    Every key I press on the keyboard fires the KeyDown event. Except for the 4 Arrow Keys?

    I added handlers for KeyPress and KeyUp. It seems in my case, only KeyUp is fired for the Arrow keys?

    This is useless to me, because if the user holds an Arrow key down (so it repeats), only one KeyUp event is fired, not the multiple KeyDown events required by my application.

    Is this a bug or a feature or do Arrow keys fire KeyDown events on your computers?
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

  2. #2
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: UserControl.KeyDown (...Arrow Keys)

    I've just created a simple Windows Forms App. It certainly does fire KeyDown events for the Arrow Keys.

    Under what circumstances could the event be suppressed for Arrow keys?
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)