this is probably a silly question but how do you assign focus to an object on the load of a form?
Printable View
this is probably a silly question but how do you assign focus to an object on the load of a form?
You can't on load, try control.SetFocus on form activate instead.
Actually you can do it on load.. you just need to show the form (Me.Show) before issuing the Setfocus.
An alternative is to change the TabIndex of the control(s) in design time.. the one with a TabIndex of 0 will be the one that automatically gets focus when the form loads.
great, thanks!