VM,
These are the steps to implement autocomplete
1. derive a class say "MyComboBox from ComboBox class
2. Add a member called mStringList which is an string array
3. For each new entry in combo, add it to string list.
4. On Keypress of comboBox search the string in the mStringlist and display
in combo box.
example
foreach(string str in mStringList)
{
if(str.StartsWith(cmbTest.Text) == true)
{
//fill autocomplete here.
cmbTest.Text = str;
break;
}
}
Shak.
"VM" <vo******@yahoo.com> wrote in message
news:uk**************@TK2MSFTNGP11.phx.gbl...
How can I implement the autocomplete functionality in a Windows comboBox?
Thanks.