Morgan
14 years agoFrequent Contributor
Setting focus to a tab
Hello,
I am using the following to click the tab with the tabindex of 1 :
TabControl.TabIndex = 1
While this does work, in this case I am noticing that when the tab appears, it is not being loaded quite right so that the associated objects are enabled. Only when I manually click the tab do the objects on that tab show as enabled. The focus isn't to the tab itself, it appears.
How can I get this to work? I've played around with it but am not having any luck.
Thanks,
Morgan
I am using the following to click the tab with the tabindex of 1 :
TabControl.TabIndex = 1
While this does work, in this case I am noticing that when the tab appears, it is not being loaded quite right so that the associated objects are enabled. Only when I manually click the tab do the objects on that tab show as enabled. The focus isn't to the tab itself, it appears.
How can I get this to work? I've played around with it but am not having any luck.
Thanks,
Morgan