CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    177

    Shift + Tab Key Down

    I had the following code:

    Code:
    Private Sub Me_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
            If (e.KeyCode = Keys.Tab And e.Shift) Then
                    btnSave.Select()
            ElseIf (e.KeyCode = Keys.Escape) Then
                If gpPackageList.Enabled = False Then
                    btnCancel_Click()
                Else
                    Me.Close()
                End If
            ElseIf (e.KeyCode = Keys.F2) Then
                btnSave_Click()
            End If
        End Sub

    When I click Shift + Tab, the codes is not working. Anyone can assist on this?

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Shift + Tab Key Down

    The Tab key is used internally or navigation. You may want to use a different key.
    Always use [code][/code] tags when posting code.

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

Featured