I want to move the "focus" when user press up down left right.
I write the following code in keydown event.
But it can't work. The left and right has no problem, however, up and down can't work.

VB Code:
  1. Select Case e.KeyCode
  2.             Case Keys.Up
  3.                 If x > 1 Then
  4.                     x -= 1
  5.                 End If
  6.             Case Keys.Down
  7.                 If x < 9 Then
  8.                     x += 1
  9.                 End If
  10.             Case Keys.Right
  11.                 If y < 9 Then
  12.                     y += 1
  13.                 End If
  14.             Case Keys.Left
  15.                 If y > 1 Then
  16.                     y -= 1
  17.                 End If
  18.         End Select
  19. arrtextbox(x, y).Focus()