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 maximum number of saved autocomplete entries.
Get
VB.NET | Count = object.MaxEntries As Short |
VB | Count = object.MaxEntries As Integer |
C#.NET | short Count = object.MaxEntries; |
VC++ | short Count = object->MaxEntries; short Count = object->GetMaxEntries(); |
C | HRESULT object->get_MaxEntries(short* Count); |
Put
VB.NET | object.MaxEntries = Count As Short |
VB | object.MaxEntries = Count As Integer |
C#.NET | short object.MaxEntries = Count; |
VC++ | short object->MaxEntries = Count; void object->PutMaxEntries(short Count); |
C | HRESULT object->put_MaxEntries(short Count); |
object
Count
Defines the maximum number of saved autocomplete entries, between 1 and 1000.
The MaxEntries property defines the maximum number of saved autocomplete entries.
The MaxEntries property is used to limit the maximum number of entries stored in the defined file (see AutoComplete.File property).
Generally, only a small number of entries should be saved, otherwise the amount of data presented to the user may not be useful and may slow data entry. For larger amounts of data, a combo box control may be a better choice than using the Masked Edit control's autocomplete feature.
If the AutoComplete.Contents property is set to contentsSftMaskFiles, contentsSftMaskDirs or contentsSftMaskFilesDirs, the MaxEntries property has no effect as file/directory lists or selections are never saved..
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) AxSftMask1.AutoComplete.AddTop("State Lookup ...", 2)
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 SftMask1.AutoComplete.AddTop "State Lookup ...", 2
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 axSftMask1.AutoComplete.AddTop("ZIP-Code Lookup ...", 1);
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