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
Updates or displays autocomplete information.
VB.NET | object.Refresh() |
VB | object.Refresh |
C#.NET | void object.Refresh(); |
VC++ | HRESULT object->Refresh(); |
C | HRESULT object->raw_Refresh(); |
object
The Refresh method updates or displays autocomplete information.
The Refresh method can be used to initiate display of autocomplete information under program control.
The Refresh method sets the input focus to the Masked Edit control and displays the available autocomplete information.
If the AutoComplete.Mode property is defined as autocompleteSftMaskSuggest or autocompleteSftMaskSuggestAppend, the list of suggestions is displayed or updated.
If the AutoComplete.Mode property is set to autocompleteSftMaskAppend, the first matching entry is used to complete the current input data.
If e.entryType = 1 Then AxSftMask1.Rollup() MsgBox("We could be looking up ZIP codes in another application...") AxSftMask1.Text = "12345" End If If e.entryType = 2 Then AxSftMask1.Rollup() MsgBox("We could be looking up states in another application...") AxSftMask1.AutoComplete.Refresh() End If End Sub Private Sub AxSftMask1_Matching(ByVal sender As Object, ByVal e As AxSftMaskLib70._ISftMaskEvents_MatchingEvent) Handles AxSftMask1.Matching If Mid(e.entryText, 1, 1) = "0" Then ' don't show any ZIP code starting with a "0" e.accept = False
If EntryType = 1 Then SftMask1.Rollup MsgBox ("We could be looking up ZIP codes in another application...") SftMask1.Text = "12345" End If If EntryType = 2 Then SftMask1.Rollup MsgBox ("We could be looking up states in another application...") SftMask1.AutoComplete.Refresh End If End Sub Private Sub SftMask1_Matching(ByVal Text As String, EntryText As String, Accept As Boolean) If Mid(EntryText, 1, 1) = "0" Then ' don't show any ZIP code starting with a "0" Accept = False
if (e.entryType == 1) { axSftMask1.Rollup(); MessageBox.Show("We could be looking up ZIP codes in another application..."); axSftMask1.Text = "12345"; } if (e.entryType == 2) { axSftMask1.Rollup(); MessageBox.Show("We could be looking up states in another application..."); axSftMask1.AutoComplete.Refresh(); } } private void axSftMask1_Matching(object sender, AxSftMaskLib70._ISftMaskEvents_MatchingEvent e) { if (e.entryText[0] == '0') { // don't show any ZIP code starting with a "0"
if (EntryType == 1) { m_pMask1->Rollup(); AfxMessageBox(_T("We could be looking up ZIP codes in another application..."), MB_OK, 0); m_pMask1->Text = _T("12345"); } if (EntryType == 2) { m_pMask1->Rollup(); AfxMessageBox(_T("We could be looking up states in another application..."), MB_OK, 0); m_pMask1->AutoComplete->Refresh(); } } void CProject1Dlg::OnMatchingSftMask1(LPCTSTR Text, BSTR FAR* EntryText, BOOL FAR* Accept) { if (*EntryText[0] == L'0') { //' don't show any ZIP code starting with a "0"
See Also SftMaskAutoComplete Object | Object Hierarchy