

For example, you could use this event to trigger data validation or enable or disable certain controls that depend upon the current tab. Use this event if you wish to respond when the current tab is changed. This event occurs when the value of the SelectedIndex property changes. You must set each TabPage’s ToolTipText property in order for the tooltip to display when the mouse hovers over the tab. Set the ShowToolTip property to True to enable ToolTips. This property indicates whether ToolTips should be shown for tabs that have their ToolTips set. SelectedIndex is similar to the SelectedTab but instead it uses the index of the tab to determine which tab is selected.

This property returns or sets the index of the currently selected tab page. You can use this property to programmatically change the current tab: $tabcontrol1. This property returns or sets the currently selected tab page. See the Spotlight of the ImageList Control article for more details on how to use an ImageList. When an ImageList is set you can use the TabPage’s ImageIndex property to select an image to display on the tab: This property returns or sets the images to display on the control’s tabs. In the designer, you can drag and drop controls directly in the TabPage as you would within the form. Sets the image of the tab to the respective image located in the TabControl’s ImageList property.Įxample of TabPages used to display a set of controls: The text that is displayed in a tooltip when the mouse hovers over the tab (See ShowToolTip property for more info). This property returns the collection of tab pages in this tab control.Įach tab consists of a TabPage, which acts as a container for other controls that are displayed when the tab is selected. Use the TabControl when you wish to present a series of related controls that are separated into individual pages which can be selected by a tab. User Rating: 2 / 5 Please Rate TabControl
