I found one simple script which is used to make the auto complete Combo box in normal combo box list in the windows mobile or the computer, for the operation with the operation you just have to set the combo box I the drop down list into the system windows forum, apply the script into the combo box, hope this will help you:
Code:
private void cbo_KeyUp(object sender, KeyEventArgs e)
{
string text = null;
int num = -1;
object item = null;
string str3 = null;
ComboBox box = (ComboBox)sender;
switch (e.KeyCode)
{
case Keys.Left:
case Keys.Up:
case Keys.Right:
case Keys.Down:
case Keys.Delete:
case Keys.Back:
return;
default:
text = box.Text;
for (int i = 0; i = 0)
{
item = box.Items[num];
str3 = box.GetItemText(item).Substring(text.Length);
box.Text = text + str3;
box.SelectionStart = text.Length;
box.SelectionLength = str3.Length;
box.SelectedItem = item;
}
}
}
Bookmarks