C1Tab Reference > C1Tab Methods > AddTab Method |
Adds a tab to the control.
[form!]C1Tab.AddTab Caption As String, [ Position As Variant ], [ Picture As Variant ]
The parameters for the AddTab method are described below:
Caption As String
Contains the caption for the new tab. Use an ampersand to specify an accelerator key for the new tab. You may change the caption later using the TabCaption property.
Position As Variant (optional)
Specifies the position (index) for the new tab. If provided, this value must be between 0 and NumTabs. If omitted, the new tab is inserted at the end of the list and becomes the last tab.
Picture As Variant (optional)
Allows you to specify a picture to attach to the new tab. You may change the picture later using the TabPicture property.
Note: This method adds a tab to the control, but it does not automatically connect the new tab to a "page". For that, use the AttachPageToTab method.