ya soluciene lo de la pantalla de login, ahora tengo un textbox y un datagridview con una consulta sql "select * from tabla" y me lo muestra en el datagridview, como puedo seleccionar el siguiente record del datagridview cuando presiono en el textbox la flecha abajo y arriba?
mi codigo es este:
Código:
Private Sub TXTSearch_KeyDown(sender As Object, e As KeyEventArgs) Handles TXTSearch.KeyDown
If e.KeyCode = Keys.Down Then
If (DG.CurrentRow.Index < DG.Rows.Count) Then
DG.Rows(DG.CurrentRow.Index + 1).Selected = True
End If
ElseIf e.KeyCode = Keys.Up Then
If (DG.CurrentRow.Index > 0) Then
DG.Rows(DG.CurrentRow.Index - 1).Selected = True
End If
End If
End Sub
Pero no me funciona, solo funciona 1 vez y tampoco corre al siguiente registro solo se queda en la primera fila del datagridview.
Gracias.