TabPageIcon Property

Applies To
TabControl

Description
Sets or gets the icon image of the header for the tab page that is displayed on the Tab control.

Usage

GGet Form.Control.TabPageIcon(index), var
GSet Form.Control.TabPageIcon(index), value
Form
Usage
Control
Name of a control or string variable containing a control name.
Index
An index of the Tab control.
var
String variable that will contain the value of the property.
value
String expression for the new value of the property.

Values
A string containing the full path to an image file.
Default: Empty

See Also
Tab Control, TabEditor Property

Example

' Gets the icon for the header of the tab page for index 2 that is currently set.
GGet frmMain.tabControl1.TabPageIcon(2), icon$
' Sets the tab page background color for index 0 to "LedGreen.ico."
GSet frmMain.tabControl1.TabPageIcon(0), ”C:\EpsonRC80\GUI\Icons\LedGreen.ico”