Hi All,
I have a small problem with the operation of a TextBox field that is
configured for AutoCompletion. This is using .NET 2.0.50727 and within a
desktop application written in VisualBasic.
The TextBox is configured as
TextBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend
TextBox.AutoCompleteSource = AutoCompleteSource.CustomSource
TextBox.AutoCompleteCustomSource = AList
The data defined as
Public AList As New AutoCompleteStringCollection
The AList is filled from another String field (variable number of entries)
If Field.Text <> "" Then
If Not TextBox.AutoCompleteCustomSource.Contains(Field.Text) Then
TextBox.AutoCompleteCustomSource.Add(Field.Text)
End If
End If
All goes well, at first. I can tab into the TextBox, type a character, and a
list of all entries in Alist are displayed. The first entry in the list is
selected, and the missing characters appended to TextBox and themselves marked
as selected. Tab through to the next field of the form and the selected item
is entered into TextBox. All exactly as expected.
Now, the problem. Clear the data from the form and enter a new record. Tab
into the TextBox. Type the same letter as before. Same list of entries
displayed, but the first entry is no longer suggested. Why?
--
Regards,
Mike Fry
Johannesburg