Hide

SftOptions 1.0 - ActiveX Options Control

Display
Print

SftOptionsIO.Registry Property

Defines the registry path used to store property settings.

Syntax

Get

VB.NETRegistryPath = object.Registry As String
VBRegistryPath = object.Registry As String
C#.NETstring RegistryPath = object.Registry;
VC++_bstr_t RegistryPath = object->Registry;
_bstr_t RegistryPath = object->GetRegistry();
CHRESULT object->get_Registry(BSTR* RegistryPath);

Put

VB.NETobject.Registry = RegistryPath As String
VBobject.Registry = RegistryPath As String
C#.NETstring object.Registry = RegistryPath;
VC++_bstr_t object->Registry = RegistryPath;
void object->PutRegistry(_bstr_t RegistryPath);
CHRESULT object->put_Registry(BSTR RegistryPath);

object

A SftOptionsIO object.

RegistryPath

Defines the registry path used to store property settings (see below).

Comments

The Registry property defines the registry path used to store property settings.

The Load and Save methods are used to transfer options between the location defined by the IO.File or Registry property settings and the SftOptions control.

If the Registry property is set to a non-null string, the IO.File property is cleared.

RegistryPath must start with the prefix "USR:" or "MACH:", followed by the remainder of the registry key. USR: is equivalent to current user settings (HKEY_CURRENT_USER), MACH: is used for system settings (HKEY_LOCAL_MACHINE). No other prefix is allowed.

The IO.OptionValue property is used to retrieve (or set) an option value as it is currently saved in the location defined by the IO.File or Registry property settings. The OptionValue property value is identical to the SftOptsIO control's SftOptsIO.OptionValue property.

Example

SftOptions1.Add "", "Main", "Your first sample", entrySftOptionsTopic, "", "", Nothing, "", "", "", ""
SftOptions1.Add "Main", "Rb1", "Radio Button 1", entrySftOptionsRadioButton, "", "", Nothing, "", "", "", ""
SftOptions1.Add "Main", "Rb2", "Radio Button 2", entrySftOptionsRadioButton, "", "", Nothing, "", "", "", ""
SftOptions1.Add "Main", "Rb3", "Radio Button 3", entrySftOptionsRadioButton, "", "", Nothing, "", "", "", ""
SftOptions1.Add "", "Cb1", "Check Box Option", entrySftOptionsCheckBox, "", "", Nothing, "", "", "", ""
SftOptions1.IO.Registry = "USR:Software\Softelvdm\TestData\FirstSample"
SftOptions1.Load
SftOptions1.InitializationComplete

See Also SftOptionsIO Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.