I have a form with textbox and click.
I want when I write something in the textbox and click ENTER that the event of the click done. and after the focuse come back to the textbox
My problem is that the event run good but the focus dosent return to the textbox
here is my code:
how can I retern the focus back to the textbox.
hope that u understand my broken worsd...
I want when I write something in the textbox and click ENTER that the event of the click done. and after the focuse come back to the textbox
My problem is that the event run good but the focus dosent return to the textbox
here is my code:
Code:
Private Sub kod_book_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then 'ENTER
Me.GO.SetFocus 'go to the other filed to update the text-box
Call go_Click
Me.kod_book.SetFocus 'return back to the textbox
End If
End Sub
how can I retern the focus back to the textbox.
hope that u understand my broken worsd...