Hi

24sharon

Registered User.
Local time
Yesterday, 17:52
Joined
Oct 5, 2004
Messages
147
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:
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... :rolleyes:
 
Thanks

I got it

KeyCode = 0

then
Me.kod_book.SetFocus

see u on the other question ;)
 

Users who are viewing this thread

Back
Top Bottom