I have a program with a hand made grid using text boxes. I have an event that needs to fire on the GotFocus for the boxes. All the boxes in one line will have the same trigger activated when I call them. This is the code I'm currently using:
Private Sub txtDNum1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDNum1.GotFocus, txtClient1.GotFocus, txtDesc1.GotFocus, txtTitleA1.GotFocus, txtTitleB1.GotFocus
intGridLocation = 0
If intGridLocation <> intLastGrid Then
SaveRows(intLastGrid)
End If
End Sub
The problem I'm having is that it's not handling anything other than txtDNum1.GotFocus. Is there something I'm doing wrong with this that could be causing it? Please let me know!
Private Sub txtDNum1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDNum1.GotFocus, txtClient1.GotFocus, txtDesc1.GotFocus, txtTitleA1.GotFocus, txtTitleB1.GotFocus
intGridLocation = 0
If intGridLocation <> intLastGrid Then
SaveRows(intLastGrid)
End If
End Sub
The problem I'm having is that it's not handling anything other than txtDNum1.GotFocus. Is there something I'm doing wrong with this that could be causing it? Please let me know!