ActivePageIndex Property

Gets or sets the active tab page. See below for limitations in host forms.

object.ActivePageIndex = [integer]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and integer is the index of the currently active tab page.

Client support

   Newlook Smartclient

   Newlook Server

Use

This property is useful if you want to determine which tab page is currently active. It can also be used to set the active tab page for tab controls for Added forms or dynamically set the tab page for host forms after the form has opened (see the notes below for limitations of the ActivePageIndex on host forms).

To give an individual TabPage focus at runtime set the tab control's ActivePageIndex property to the index of the TabPage you wish to make active.  

NOTE:

By design, when a host form is received, a Tab control will always give focus to any tab page that contains a field given focus by the host application. This default behavior will always override any value set for the ActivePageIndex property of a Tab Control in Designer.

NOTE:

The ActivePageIndex of a Tab Control cannot be used to dynamically display an invisible tab. The visibility of the tab will need to be set to True before the ActivePageIndex can be set.

See Also

TabPages property | Index property

Applies To

Tab control


© 2004-2021 looksoftware. All rights reserved.