TabControlItem |
Post Reply |
Author | |
rdmeyers
Groupie Joined: 11 December 2008 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
Posted: 27 January 2009 at 1:18pm |
How does one gain access to a collection of TabControlItems in a TabControl? Also, TabControl.SelectedItem does not return a TabControlItem so what does it represent???
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Use Item property or indexer TabControl(1).
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rdmeyers
Groupie Joined: 11 December 2008 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
Neither TabControl.InsertItem(...) nor TabControl.Item(...) returns a TabControlItem. All I get is "Nothing" even though the tab is added to the control. I am adding the tabs at runtime, so is this a problem?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Jsut tried with new project - works without problems:
Private Sub Form_Load()
Dim Item As TabControlItem Set Item = TabControl1.InsertItem(0, "Item", 0, 0) Debug.Print Item.Caption End Sub
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rdmeyers
Groupie Joined: 11 December 2008 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
The problem actually manifests itself when the TabControl is wrapped inside of a UserControl. I was hoping to wrap the control to add some missing functionality to make working with it easier. It would be nice to be able to access the TabControlItem by a keyname instead of the Index.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |