separator separator

ApplyTo (Property)

Returns or sets a value indicating whether the skin will be applied just to the form where the control is placed or to all the forms of the project. It is available at design time and at run time.

Syntax

object.ApplyTo [= value]

The ApplyTo property syntax has these parts:

Part Description
object An object expression referencing to a vbSkinner object.
value A long value specifying if the skin will be applied to one form or to all the forms of the program.

Settings

The settings for value are:

Value Description
skThisForm (0) (Default) The skin will be applied only to the form where the control is.
skAllForms (1) The skin will be applied to all the forms.


Remarks:

Once this property is set to skAllForms, in order to apply to the skin to all the forms it is required to put the following line of code:

    Set Skinner1.Forms = Forms

(Replace Skinner1 by the name of the skinner control, in the case that you changed it)
A proper place for this line of code is in the Form Load event of the form. 
If this code line does not exist, then the skin will not be applied to all the forms even if the ApplyTo property is set to skAllForms. 

Note:  

When the property is set to skAllForms, if you don't want to skin one or more forms, then place a label in that form with Name or Caption = "noskin" (a non Visible label).
You can still place other Skinner controls in any form where you want special features, such as different buttons at the title bar, a different skin, manage the events inside the form, etc.

separator

See also: Forms (property)
vbSkinner constants 
How to use the vbSkinner control
SkinBoxes (property)

separator

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