Visual Basic: MSTab Control

Picture Property (SSTab Control)

See Also   Example   Applies To

Returns or sets a graphic to be displayed in the current tab of an SSTab control.

Syntax

object.Picture [ = picture]

The Picture property syntax has these parts:

Part Description
object An object expression that evaluates to an SSTab control.
picture A string expression that designates a bitmap or icon to display on the current tab, as described in Settings.

Settings

The settings for picture are:

Setting Description
(None) An object expression that evaluates to an SSTab control.
(Bitmap, icon, metafile) A string expression that designates a bitmap or icon to display on the current tab.

Remarks

At design time, you set the Picture property for a tab by clicking that tab and then setting the property in the Properties window. At run time, you can set the Picture property using the LoadPicture function or the Picture property of another control or of a Form object. You can make any tab the current tab by setting the Tab property.

When setting the Picture property at design time, the graphic is saved and loaded with the Form object containing the SSTab control. If you create an executable file, the file contains the image. When you load a graphic at run time, the graphic isn't saved with the application.

Setting the Picture property affects the value of the TabPicture property for the current tab as well as displays the picture in the active tab.