Hi!!
I have two Multilined textboxes on my form (Textbox1 and Textbox2). Then I have this code:
I run the project I select the textbox1 and click the right arrow key, and he selects the textbox2 as it would be expected. Now the problem is: if I click in the down arrow key while selecting the textbox1, the textbox2 should get selected, but it doesnt. Why?Code:Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = Keys.Right Then TextBox2.Focus() If e.KeyCode = Keys.Down Then TextBox2.Focus() End Sub
Thks a lot!




Reply With Quote