شما ابتدا خاصیت autocomplete کمبو رو به حالت پیشفرض برگردونید.
برای خواسته شما ، کافیه در رویداد textchanged یا textupdate کمبوباکس از دستور سلکت به همراه like استفاده کنید. مثال:
private void cmb_TextChanged(object sender, EventArgs e)
{
if (cmb.Text != string.Empty)
{
try
{
if (con.State == ConnectionState.Closed)
{
con.Open();
}
SqlDataAdapter da;
da = new SqlDataAdapter("SELECT name FROM tbl where name like '%" + cmb.Text + "%'", con);
dt.Clear();
da.Fill(dt);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
if (con.State == ConnectionState.Open)
{
con.Close();
}
}
cmb.DataSource = dt;
}
}