1
Answer

SetFocus()

Photo of john_farrellus

john_farrellus

21y
2.3k
1
Any ideas what prevents SetFocus() from working? I have a form that reads a value from some calipers. This works fine... However, three readings are required... So after I get a reading for the 1st item, I want to automatically move to the next item.... I put a .SetFocus() on that control, and nothing happens. My set focus on the Form_Load event works, and will place focus where ever I want, but after that, forget it. SetFocus() does nothing. I have tried Application.DoEvents() before the Focus... But Nada. John...

Answers (1)

0
Photo of john_farrellus
NA 42 0 21y
And the .CanFocus is true on the controls... And errata, it's the .Focus() not .SetFocus(). :P