how List<string> become AutoCompleteStringCollection
Posted
by
aeruL
on Stack Overflow
See other posts from Stack Overflow
or by aeruL
Published on 2011-01-13T08:51:24Z
Indexed on
2011/01/13
8:53 UTC
Read the original article
Hit count: 159
I have list, i want to convert it to autoCompleteStringCollection.. And I don't want use foreach.
_textbox.AutoCompleteMode = AutoCompleteMode.Append;
_textbox.AutoCompleteSource = AutoCompleteSource.CustomSource;
_textbox.AutoCompleteCustomSource = user.GetNameUsers() as AutoCompleteStringCollection;
Note user.GetNameUsers() is list.
Code doesn't work, it become null.
Thank you
© Stack Overflow or respective owner