Results 1 to 7 of 7

Thread: Text.Box Navigation With Enter

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    20

    Text.Box Navigation With Enter

    I have 3 TextBoxes and 1 Button.
    I want to navigate using Enter instead of Tab.
    What do you think that is the reson, for why Microsoft didn't offer this alternative ?
    Please ! Thanks

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    Because it's not that hard to add it:
    Code:
        Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
            If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Enter) Then
                TextBox2.Select()
                e.Handled = True
            End If
        End Sub

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    20
    I tried ,but I fogot to say that I wanted in Web Form ASP.NET an .aspx.
    Any ideea in this case?
    Thanks

  4. #4
    New Member
    Join Date
    Sep 2002
    Location
    Vienna
    Posts
    13
    What do you think that is the reson, for why Microsoft didn't offer this alternative ?
    1. It is standards behaviour and it is nice for users if most programms function similar

    2. Multiline TextBoxes wouldn't know if they should add a new line or move to the next field

    3. In many programms the Enter Key is meant to act as if OK or Submit was clicked

    best regards

    Sascha

  5. #5
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    Probably you're better off asking in the ASP .NET forum.

  6. #6
    New Member The Developer's Avatar
    Join Date
    Sep 2002
    Location
    London, England, UK
    Posts
    11

    Exclamation

    I entirely agree with Sascha. Would you like to feel intimidated by every different windows application you use?!
    The Developer

  7. #7

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    20
    The problem is that I came from a background of programming in FilePro for Unix.
    In that case when you hit Enter after you entered the data in a text box you jump in other textbox.
    It is very difficult to convince people that are working in that environment 20 years to work with Tab instead of Enter. I think
    that Enter is a more logical option that Tab.

    Please try to help me even you don't agree!
    Thanks.

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