J
Jaspar
I can't seem to find documentation on how to use the
TabStrip control in VBA. I have created a simple form with
a TabStrip control named tab. I have put a listbox in the
client region of tab1 and named it listbox.
During initialization of this form I would like to define
how many tabs the tabstrip control will have and the
caption of each tab - and this is easy:
Set MyTab = form.tab.Tabs.Add("tab1")
MyTab.Caption = "Number 1"
Then I want to populate the listbox with different items
dependant upon which tab I'm handling - and I don't know
how to access the listbox in the tabstrip control - I have
tried with:
Set MyListbox = MyTab.Tabs.Item(0)
MyListbox.AddItem "Item 1"
- but it doesn't work. Anybody knows how this works?
TabStrip control in VBA. I have created a simple form with
a TabStrip control named tab. I have put a listbox in the
client region of tab1 and named it listbox.
During initialization of this form I would like to define
how many tabs the tabstrip control will have and the
caption of each tab - and this is easy:
Set MyTab = form.tab.Tabs.Add("tab1")
MyTab.Caption = "Number 1"
Then I want to populate the listbox with different items
dependant upon which tab I'm handling - and I don't know
how to access the listbox in the tabstrip control - I have
tried with:
Set MyListbox = MyTab.Tabs.Item(0)
MyListbox.AddItem "Item 1"
- but it doesn't work. Anybody knows how this works?