-
Hi,
How can I identify the first object to receive the focus
when a Form is loaded, independently of the TabIndex value?
Suppose I have 5 Command Buttons in a Form. If the first
Command Button is disabled, the second Button will be the
first to receive the focus, despite of its TabIndex value
is 1.
Any ideas to solve this?
Thanks a lot for any help...
Michel Jr.
-
In your Form_Load event, put this in at the end:
Code:
Show
Msgbox ActiveForm.ActiveControl.Name
I hope this is what you were looking for.