Hi everyone,
Can any one please let me know how the Auto complete works in Mdi child form ?
I have created the simple windows from in that the below code is working fine but the same code if i implement it to MDI Child form then the same suggestion is not working?
using (OleDbConnection con = new OleDbConnection(ConString))
{
OleDbCommand cmd = new OleDbCommand("Select ConsigneeName From tblConsignee", con);
OleDbDataReader dReader;
SqlConnection conn = new SqlConnection();
con.ConnectionString = ConString;
con.Open();
dReader = cmd.ExecuteReader();
if (dReader.HasRows == true)
{
while (dReader.Read())
namesCollection.Add(dReader["ConsigneeName"].ToString());
}
else
{
}
dReader.Close();
txtConsigneeName.AutoCompleteCustomSource = namesCollection;
txtConsigneeName.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
txtConsigneeName.AutoCompleteSource = AutoCompleteSource.CustomSource;
}
Autocomplete textbox in Mdi child form c#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Sunny SharmaRank #223 · 11.1K pointsPosted Oct 9, 2013, 4:22 AM EDT
sayeed BAGBAN28 pointsPosted Oct 9, 2013, 8:29 PM EDT
I have attached the code for what the process you had replied to me but still it doesnt show the Autocomplete.