Set the AutoCompleteCustomSource
http://msdn2.microsoft.com/en-US/lib...tomsource.aspx
to a string collection of the items that can be used for autocompletion. You
can also use the AutoCompleteSource for some common items.
This code should get you started ...
m_List = new AutoCompleteStringCollection();
m_List.Add("Red");
m_List.Add("Royal Blue");
m_List.Add("Pink");
m_List.Add("Blue");
m_List.Add("Purple");
m_List.Add("Orange");
m_List.Add("Green");
this.textBox1.AutoCompleteCustomSource = m_List;
this.textBox1.AutoCompleteSource = AutoCompleteSource.CustomSource;
this.textBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
You set the AutoComplete
"Melson" <we****@hotmail.com> wrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
Hi
Can anyone help please. How can I create a Auto complete textbox using C#.
Please help.
Regards
Melson