One of the nicest features in visual studio controls is the ability to auto compete what we are typing in ComboBox and other controls, that what I will to explain to use it efficiently.
1. Let's create the following UI :

2. Make the following changes :
ComboBox1
Set comboBox1 property : AutoCompeteSource to ListItems
Set comboBox1 property : AutoCompeteMode to SuggestAppend
Fill the items list of the comboBox1 by : Algeria,Maroco,Tunisia,Egypt,France,Italy,Germany,,India,China
ComboBox2
Set comboBox1 property : AutoCompeteSource
to CustomSource
Set comboBox1 property : AutoCompeteMode to SuggestAppend
And leave the items list blank
The code behind the form:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ComboBoxAutoComplete

Join the conversation! Your thoughts help the community grow.