Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - TabControlItem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControlItem

 Post Reply Post Reply
Author
Message
rdmeyers View Drop Down
Groupie
Groupie


Joined: 11 December 2008
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdmeyers Quote  Post ReplyReply Direct Link To This Post Topic: TabControlItem
    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???
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2009 at 1:40pm
Hi,
 
Use Item property or indexer TabControl(1).
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rdmeyers View Drop Down
Groupie
Groupie


Joined: 11 December 2008
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdmeyers Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2009 at 3:46pm
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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2009 at 1:45am
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
Back to Top
rdmeyers View Drop Down
Groupie
Groupie


Joined: 11 December 2008
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdmeyers Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2009 at 2:50pm
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.265 seconds.