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

Thread: Shift + Tab Key Down

  1. #1
    Join Date
    Jan 2009
    Posts
    161

    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
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,851

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center