Hi,
I was also looking for a solution to this today. Would the solution Peter provided lead to a memory leak?
In the AutoCompleteMode property, the set method calls dispose on the previous on the helpers. However if you set the
AutoCompleteSuggest then that object is never added to the private autoCompleteHelpers field.
i.e. the default way
My alternative (and there are many now that I think about it... but this is the least change in my opinion) is to change the line
to
and have a new public field (or property.. whatever)
or alternatively, change the AutoCompleteSuggest property?