C#-APP: Disable arrow keys on tabcontrol

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • theleshie
    New Member
    • May 2008
    • 3

    C#-APP: Disable arrow keys on tabcontrol

    In the windows application I am developing, I'm trying to prevent users from using the arrow keys on the keyboard to navigate through the tabpages on a tabcontrol. Is anyone aware of a way to do this?
  • pootle
    New Member
    • Apr 2008
    • 68

    #2
    Hi,

    You can use PreFilterMessag e to receive the Windows message directly. If you handle WM_KEYDOWN (decimal 256), you can find the keycode of the key inside the WParam part of the message.

    Have a look at section 7.5 in the following link:
    http://www.syncfusion. com/FAQ/winforms/FAQ_c46c.aspx


    Regards.

    Comment

    Working...