-
TabStrip question
hi i'm using this piece of coding to create a new tab, and insert the tab index number in the tabcaption. How would I make sure that the new tab which is created has Focus? so i can then input array fields on to it. I just want to make sure it always has focus for the new tab that is made.
Dim newTab As MSComctlLib.Tab
Set newTab = TabStrip1.Tabs.Add
newTab.Caption = "Y" & TabStrip1.Tabs.Count
-
Well ...
Use the .Tab property of the TabStrip control.
Code:
TabStrip1.Tab = TabStrip1.Tabs.Count - 1
.
-
the code below works, I just need to have a SetFocus added to each new tab that is added so i can process coding (control arrays) for that tab before a new one is created.
Code:
Dim newTab As MSComctlLib.Tab
Set newTab = TabStrip1.Tabs.Add
newTab.Caption = "Y" & TabStrip1.Tabs.Count