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.Sel ectedIndex = 0 Then
If txtFileName.Can Focus Then
txtFileName.Foc us()
End If
End If
I get false from canfocus.
I can do it fine in the tabcontrol.sele ctedindexchange d 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.Sel ectedIndex = 0 Then
If txtFileName.Can Focus Then
txtFileName.Foc us()
End If
End If
I get false from canfocus.
I can do it fine in the tabcontrol.sele ctedindexchange d event so why
can't I do it in load?
Thanks
Comment