G
Guest
Hi, All
I am using .NET 2003
Combobox has textbox control over it used for the search;
txtSrh.Visible = True
txtSrh.Bounds = cboLoc.Bounds
txtSrh.Width -= 16
I have combobox search on 3 char in txtSrh_TextChanged procedure:
If txtSrh.TextLength = 3 Then
Dim i As Integer
Dim sLoc As String
Dim bFound As Boolean = False
For i = 0 To cboLoc.Items.Count - 1
sLoc = cboLoc.Items(i).ToString
If sLoc.Substring(0, 3) = txtSrh.Text.Trim Then
txtSrh.Visible = False
txtSrh.Text = ""
cboLoc.SelectedIndex = i
cboLoc.Focus()
Exit For
End If
Next
My question is how can i do the search where each additional letter
entered brings search closer to specifyed entry?
Thank you,
I am using .NET 2003
Combobox has textbox control over it used for the search;
txtSrh.Visible = True
txtSrh.Bounds = cboLoc.Bounds
txtSrh.Width -= 16
I have combobox search on 3 char in txtSrh_TextChanged procedure:
If txtSrh.TextLength = 3 Then
Dim i As Integer
Dim sLoc As String
Dim bFound As Boolean = False
For i = 0 To cboLoc.Items.Count - 1
sLoc = cboLoc.Items(i).ToString
If sLoc.Substring(0, 3) = txtSrh.Text.Trim Then
txtSrh.Visible = False
txtSrh.Text = ""
cboLoc.SelectedIndex = i
cboLoc.Focus()
Exit For
End If
Next
My question is how can i do the search where each additional letter
entered brings search closer to specifyed entry?
Thank you,