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
Printable View
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
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
I tried ,but I fogot to say that I wanted in Web Form ASP.NET an .aspx.
Any ideea in this case?
Thanks
1. It is standards behaviour and it is nice for users if most programms function similarQuote:
What do you think that is the reson, for why Microsoft didn't offer this alternative ?
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
Probably you're better off asking in the ASP .NET forum.
I entirely agree with Sascha. Would you like to feel intimidated by every different windows application you use?! :p
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.