separator separator

Skin (Property)

Returns or sets a value indicating the skin that will be applied to the form. It is available at design time and at run time.

Syntax

object.Skin [= value]

The Skin property syntax has these parts:

Part Description
object An object expression referencing to a vbSkinner object.
value A long setting that specifies the skin to show in the form, as described in Settings.

Settings

The settings for value are:

Value Description
skAuto_ReadFromRegistry (0) (Default) The setting about the skin to show will be obtained from the configurations registry.
skBlueSkin (1) Blue skin with rounded corners at the title bar and light gray in the form body.
skRedSkin (2) Red skin with rounded corners at the title bar and beige in the form body.
skGreenSkin (3) Green skin with rounded corners at the title bar and light gray in the form body.
skSquareBlueSkin (4) Blue skin with square corners at the title bar and light gray in the form body.
skDarkSkin (5) Blue skin with rounded corners at the title bar and bluish dark gray in the form body.
skSquarePlainSkin (6) Skin with purple title bar and light grey body, with square corners.
skCreateFromPicture (98) The skin to be shown will be obtained from the image of SkinPicture.
skCustomSkin (99) The skin will be taken from the selected settings of the TitleBarSkin, BodySkin, TitleBarForeColor and BodyForeColor properties.

Remarks
If this property setting is skAuto_ReadFromRegistry (0) the skin that will be displayed will be according to the registry setting previously saved by other form. In the case when there is not saved a registry setting the skin 1 will be displayed.
Every time a form skin is changed, if the SaveToRegistry property is set to True the skin setting selected will be saved to the registry, so it can be copied by the other forms, and then the hole application will have the same skin . In addition this also is useful for the next time the application runs to use the last skin that was selected.
Once a skin is selected from the registry settings, the Skin property doesn't change the setting, but the property that indicates the skin that was applied is SkinToDraw.

Note: In order to do the skins vbSkinner selects pre-established setting for every one of the properties TitleBarSkin, BodySkin, TitleBarForeColor and BodyForeColor. The above is with exception when the setting is skAuto_ReadFromRegistry (0), skCreateFromPicture (98) or skCustomSkin (99), since this settings have special meanings as exposed above.

separator

See also: How to customize skins
Changing skin
SkinToDraw (property)
SkinPicture (property)
TitleBarSkin (property)
BodySkin (property)
TitleBarForeColor (property)
BodyForeColor (property)
SaveToRegistry (property)
SaveValuesToRegistry (method)
vbSkinner control constants

separator

ActiveX controls for Visual Basic 6 - homevbSkinner help main page Beginning   Go back Back