Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTabs.Current Property

Defines the currently active tab.

Syntax

Get
VBTabIndex = object.Current As Integer
Put
VBobject.Current = TabIndex As Integer

object

A SftTabsTabs object.

TabIndex

The zero-based index of the currently active tab. This value may be -1 in which case there is no active tab.

Comments

The Current property defines the currently active tab.

The active tab (or current tab) is the tab that is currently the active tab, usually in the front row. The tab text also receives a focus rectangle when the tab control has the input focus.

The current tab can be changed by the user using the mouse or the keyboard. An application uses the Current property to change the currently active tab.

If the client area is available (see ClientArea property), controls can be added to the tab control at design-time. As the user switches between tabs, the controls associated with each tab are shown or hidden. As controls are hidden because their associated tab is not the current tab, the controls are not only hidden, but also disabled (using Visual Basic's Enabled property). This is fully automatic and requires no application intervention.

If the tab control is empty, the Current property returns -1.

Example

SftTabs1.Tabs.Current = 2

See Also SftTabsTabs Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.