Results 1 to 4 of 4

Thread: how can I disable Ctrl + Tab key for a tabcontrol?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    how can I disable Ctrl + Tab key for a tabcontrol?

    The users can press Ctrl+Tab (or Ctrl+Shift+Tab ) to navigate through the tab pages of a tab control. I'm wondering, is there a way to disable this? or not to let the tab control receive the key combination?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    just to let you know, I've tried this, aint working:
    VB Code:
    1. Private Sub tabWizard_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles tabWizard.KeyDown
    2.         If e.Control AndAlso e.KeyCode = Keys.Tab Then
    3.             If e.Shift Then
    4.                 e.Handled = False
    5.             Else
    6.                 e.Handled = False
    7.             End If
    8.         End If
    9.     End Sub
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi Mr. Polite.

    I downloaded this example from PSC, so no credit to me

    But it still works...
    Attached Files Attached Files
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hey thanks
    I thought there should be a better way, but oh well seems like your way is the only way....

    and, I think you should be credited because I never thought of disabling the hotkey in windows... I was just thinking of trapping the keys using keypress and such
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

Posting Permissions

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



Click Here to Expand Forum to Full Width