Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

Encrypt Property, SftMaskAutoComplete Object

Defines whether stored autocomplete entries are encrypted.

Syntax

Get

VB.NETBoolean = object.Encrypt As Boolean
VBBoolean = object.Encrypt As Boolean
C#.NETbool Boolean = object.Encrypt;
VC++VARIANT_BOOL Boolean = object->Encrypt;
VARIANT_BOOL Boolean = object->GetEncrypt();
CHRESULT object->get_Encrypt(VARIANT_BOOL* Boolean);

Put

VB.NETobject.Encrypt = Boolean As Boolean
VBobject.Encrypt = Boolean As Boolean
C#.NETbool object.Encrypt = Boolean;
VC++VARIANT_BOOL object->Encrypt = Boolean;
void object->PutEncrypt(VARIANT_BOOL Boolean);
CHRESULT object->put_Encrypt(VARIANT_BOOL Boolean);

object

A SftMaskAutoComplete object.

Boolean

Defines whether stored autocomplete entries are encrypted.

BooleanDescription
TrueEntries are encrypted.
FalseEntries are not encrypted.

Comments

The Encrypt property defines whether stored autocomplete entries are encrypted.

This property is only honored when the AutoComplete.Contents property is set to contentsSftMaskText.

The Encrypt property allows saved autocomplete entries in the defined file (see AutoComplete.File property) to be encrypted, to prevent the data to be viewed by inspecting the file. The encryption method will prevent a casual user from accessing the data, but is not intended as a security measure. The autocomplete feature should not be used for sensitive data.

Examples

VB.NET

    CaptionObj.SizePercent = 33
    CaptionObj.Text = "&ZIP Code:"

    AxSftMask1.Mask = "#####"
    AxSftMask1.EntrySelect = SftMaskEntrySelectConstants.entrySftMaskSelectEndHome

    AutoCompleteObj.File = "-\Softelvdm\AutoComplete\SampleFile2.Suggest"
    AutoCompleteObj.Encrypt = False
    AutoCompleteObj.IgnoreCase = True
    AutoCompleteObj.MaxEntries = 50
    AutoCompleteObj.Mode = SftMaskAutoCompleteModeConstants.autocompleteSftMaskSuggest
End Sub

Private Sub AxSftMask1_MatchAddCustomItems(ByVal sender As Object, ByVal e As AxSftMaskLib70._ISftMaskEvents_MatchAddCustomItemsEvent) Handles AxSftMask1.MatchAddCustomItems
    ' Ready to add custom items
    AxSftMask1.AutoComplete.AddTop("ZIP-Code Lookup ...", 1)

VB6

    CaptionObj.SizePercent = 33
    CaptionObj.Text = "&ZIP Code:"

    SftMask1.Mask = "#####"
    SftMask1.EntrySelect = entrySftMaskSelectEndHome

    AutoCompleteObj.File = "-\Softelvdm\AutoComplete\SampleFile2.Suggest"
    AutoCompleteObj.Encrypt = False
    AutoCompleteObj.IgnoreCase = True
    AutoCompleteObj.MaxEntries = 50
    AutoCompleteObj.Mode = autocompleteSftMaskSuggest
End Sub

Private Sub SftMask1_MatchAddCustomItems(ByVal Count As Long)
    ' Ready to add custom items
    SftMask1.AutoComplete.AddTop "ZIP-Code Lookup ...", 1

C#

    CaptionObj.SizePercent = 33;
    CaptionObj.Text = "&ZIP Code:";

    axSftMask1.Mask = "#####";
    axSftMask1.EntrySelect = SftMaskEntrySelectConstants.entrySftMaskSelectEndHome;

    AutoCompleteObj.File = @"-\Softelvdm\AutoComplete\SampleFile2.Suggest";
    AutoCompleteObj.Encrypt = false;
    AutoCompleteObj.IgnoreCase = true;
    AutoCompleteObj.MaxEntries = 50;
    AutoCompleteObj.Mode = SftMaskAutoCompleteModeConstants.autocompleteSftMaskSuggest;
}

private void axSftMask1_MatchAddCustomItems(object sender, AxSftMaskLib70._ISftMaskEvents_MatchAddCustomItemsEvent e)
{
    // Ready to add custom items

C++

    pCaption->SizePercent = 33;
    pCaption->Text = _T("&ZIP Code:");

    m_pMask1->Mask = _T("#####");
    m_pMask1->EntrySelect = entrySftMaskSelectEndHome;

    pAutoComplete->File = _T("-\\Softelvdm\\AutoComplete\\SampleFile2.Suggest");
    pAutoComplete->Encrypt = VARIANT_FALSE;
    pAutoComplete->IgnoreCase = VARIANT_TRUE;
    pAutoComplete->MaxEntries = 50;
    pAutoComplete->Mode = autocompleteSftMaskSuggest;

    return TRUE;
}

void CProject1Dlg::OnMatchAddCustomItemsSftMask1(long Count)

See Also SftMaskAutoComplete Object | Object Hierarchy


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