HeaderPane
Main
Hide
Share Link
Print

Move Method, SftTabsTabs Object

Moves a tab to a new position.

Syntax

VBNewIndex = object.Move(ByVal TabIndex As Integer, ByVal InsertIndex As Integer) As Integer

object

A SftTabsTabs object.

TabIndex

The zero-based index of the tab to be moved.

InsertIndex

The zero-based tab index of an existing tab in front of which the moved tab is to be inserted. If -1 is used, the tab is moved to the end.

NewIndex

Returns the zero-based index of the tab after it has been moved.

Comments

The Move method moves a tab to a new position.

Moving a tab also moves all tab properties and the associated controls (if a client area is present).

Example

See Reorder Sample

Examples

VB6 View entire sample code

    ' Remove the image before doing anything else
    FromIndex = StartTabIndex
    ToIndex = DropTabIndex
    ClearImage
    StartTabIndex = -1
    
    ' move the tab
    If FromIndex >= 0 And ToIndex >= 0 Then
        NewIndex = SftTabs1.Tabs.Move(FromIndex, ToIndex)
    End If
End Sub

See Also SftTabsTabs Object | Object Hierarchy


Last Updated 11/19/2026 - (email)
© 2026 Softel vdm, Inc.