Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

AutoComplete Property, SftMask Object

Returns the SftMaskAutoComplete object.

Syntax

Get

VB.NETrefAutoCompleteObj = object.AutoComplete As SftMaskAutoComplete
VBSet refAutoCompleteObj = object.AutoComplete As SftMaskAutoComplete
C#.NETSftMaskAutoComplete refAutoCompleteObj = object.AutoComplete;
VC++ISftMaskAutoComplete* refAutoCompleteObj = object->AutoComplete;
ISftMaskAutoComplete* refAutoCompleteObj = object->GetAutoComplete();
CHRESULT object->get_AutoComplete(ISftMaskAutoComplete** refAutoCompleteObj);

object

A SftMask object.

refAutoCompleteObj

Returns the SftMaskAutoComplete object.

Comments

The AutoComplete property returns the SftMaskAutoComplete object.

The SftMaskAutoComplete object describes the attributes of the control's autocomplete feature.

Examples

VB.NET

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim AutoCompleteObj As SftMaskAutoComplete
    Dim CaptionObj As SftMaskCaption

    CaptionObj = AxSftMask1.Caption
    AutoCompleteObj = AxSftMask1.AutoComplete

    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

VB6

Private Sub Form_Load()
    Dim AutoCompleteObj As SftMaskLib70.SftMaskAutoComplete
    Dim CaptionObj As SftMaskLib70.SftMaskCaption

    Set CaptionObj = SftMask1.Caption
    Set AutoCompleteObj = SftMask1.AutoComplete

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

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

    AutoCompleteObj.File = "-\Softelvdm\AutoComplete\SampleFile2.Suggest"
    AutoCompleteObj.Encrypt = False
    AutoCompleteObj.IgnoreCase = True

C#

private void Form1_Load(object sender, System.EventArgs e)
{
    SftMaskAutoComplete AutoCompleteObj;
    SftMaskCaption CaptionObj;

    CaptionObj = axSftMask1.Caption;
    AutoCompleteObj = axSftMask1.AutoComplete;

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

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

    AutoCompleteObj.File = @"-\Softelvdm\AutoComplete\SampleFile2.Suggest";
    AutoCompleteObj.Encrypt = false;

C++

    CDialog::OnInitDialog();

    m_pMask1 = m_Mask1.GetControlUnknown();
    _ASSERT(m_pMask1 != NULL);

    ISftMaskAutoCompletePtr pAutoComplete;
    ISftMaskCaptionPtr pCaption;

    pAutoComplete = m_pMask1->AutoComplete;
    pCaption = m_pMask1->Caption;

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

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

See Also SftMask Object | Object Hierarchy


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