PDA

Click to See Complete Forum and Search --> : Text.Box Navigation With Enter


adibu
Sep 30th, 2002, 01:01 PM
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

Slow_Learner
Sep 30th, 2002, 03:06 PM
Because it's not that hard to add it:


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

adibu
Sep 30th, 2002, 04:16 PM
I tried ,but I fogot to say that I wanted in Web Form ASP.NET an .aspx.
Any ideea in this case?
Thanks

Sascha
Sep 30th, 2002, 04:24 PM
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

Slow_Learner
Sep 30th, 2002, 05:31 PM
Probably you're better off asking in the ASP .NET forum.

The Developer
Sep 30th, 2002, 08:38 PM
I entirely agree with Sascha. Would you like to feel intimidated by every different windows application you use?! :p

adibu
Oct 1st, 2002, 07:29 AM
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.