J
Jack Russell
I have a form containing a tab control
I want focus set to a particular text box when the form opens.
However doing this in the load form event
If TabControl1.SelectedIndex = 0 Then
If txtFileName.CanFocus Then
txtFileName.Focus()
End If
End If
I get false from canfocus.
I can do it fine in the tabcontrol.selectedindexchanged event so why
can't I do it in load?
Thanks
I want focus set to a particular text box when the form opens.
However doing this in the load form event
If TabControl1.SelectedIndex = 0 Then
If txtFileName.CanFocus Then
txtFileName.Focus()
End If
End If
I get false from canfocus.
I can do it fine in the tabcontrol.selectedindexchanged event so why
can't I do it in load?
Thanks