"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
kimiraikkonen <ki*************@gmail.comwrote in
news:0ecc162b-f2b4-4740-
b7***************@p39g2000prm.googlegroups.com:
>I know it's not directly related to AutoComplete property but this can
give you an urgent solution that makes text field as you wish if typer
writes "Pounder" then textbox becomes "Ouarter Pounder" because of
textbox's text_changed event, i hope you tried it.
Unfortunately its not what I'm really looking for - I would like to have
the autocomplete list populated with suggestions like what Google Suggests
does.
If I only handle the TextChange event ... it'll be too much of a kudlge to
be rewriting the user's input on the fly? I rather be able to display the
suggestions in the autocomplete portion of the control.
But, thanks for the suggestion!
--
sp**********@rogers.com (Do not e-mail)
Textbox has its own Autocomplete functionallity.
As an example:
Me.TextBox1.AutoCompleteCustomSource.AddRange(New String() {"One", "Two",
"Three"})
Me.TextBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest
Me.TextBox1.AutoCompleteSource =
System.Windows.Forms.AutoCompleteSource.CustomSour ce
The AutoCompleteCustomSource can be populated in pretty much any way you
want as long as it is an array of strings. Get it from database or where
ever.
Hope this is what you are looking for
Lloyd Sheen