C1Tab Reference > C1Tab Properties > TabCaption Property |
Returns or sets the caption for a given tab.
[form!]C1Tab.TabCaption(Index As Integer)[ = value As String ]
Use this property to dynamically change the text in individual tabs. The Caption property can be used to set or return the text for all tabs at once.
You may create multi-line tab captions by assigning strings containing line breaks (vbCrLf) to the TabCaption property.
You can change the color, picture, visibility, and enabled state of a tab using the TabColor, TabPicture, TabVisible, and TabEnabled properties.
Tabs are numbered from zero to NumTabs - 1. Trying to get or set a TabCaption outside this range will trigger an invalid index error.
Note: In previous versions of the Tab control, you could create tabs by assigning a string with embedded pipe characters to a TabCaption (e.g. TabCaption(0)="Tab1|New Tab"), and delete tabs by assigning them an empty string (e.g. TabCaption(0)=""). Although this is still supported for compatibility with existing code, new applications should use the AddTab and RemoveTab methods instead.
String