SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the entry's default value.
Get
VB.NET | String = object.DefaultValue As String |
VB | String = object.DefaultValue As String |
C#.NET | string String = object.DefaultValue; |
VC++ | _bstr_t String = object->DefaultValue; _bstr_t String = object->GetDefaultValue(); |
C | HRESULT object->get_DefaultValue(BSTR* String); |
Put
VB.NET | object.DefaultValue = String As String |
VB | object.DefaultValue = String As String |
C#.NET | string object.DefaultValue = String; |
VC++ | _bstr_t object->DefaultValue = String; void object->PutDefaultValue(_bstr_t String); |
C | HRESULT object->put_DefaultValue(BSTR String); |
object
String
Defines the entry's default value.
The DefaultValue property defines the entry's default value. For possible values based on the entry type, please see the Entry.Value property.
The Entry.Restore and RestoreAll methods use the DefaultValue property to set the entry's Value property.
The DefaultValue property is used to initialize entries when no option information has been previously saved in the location defined by IO.File or IO.Registry
When deploying an application, typically using a setup program, the Registry and INI files may need to be initialized. The DefaultValue properties of the entries in a SftOptions control reflect the default values that would be set in response to the Restore or RestoreAll methods. These default values are not automatically installed when deploying an application. If the SftOptions control has not yet saved the property settings, the "SftOptions_Initialized" option has not yet been set to "1" (see Save). This option could be tested by an installation program to initialize option settings in the Registry or INI file, possibly even using a SftOptions control.
See Also SftOptionsEntry Object | Object Hierarchy