public void LoadEmploye() { employes.Clear(); ObjectThread object_employe = new ObjectThread(com_employe); new Thread(delegate() { try { employes = EmployeBLL.List(Constantes.QUERY_EMPLOYE(Constantes.SOCIETE), false); object_employe.DisplayMember("NomPrenom"); object_employe.ValueMember("Id"); object_employe.DataSource(new BindingSource(employes, null)); for (int i = 0; i < employes.Count; i++) { Employe e = employes[i]; String nom = e.NomPrenom; if (com_employe.AutoCompleteCustomSource.Contains(nom)) { nom += "°"; } object_employe.AutoCompleteCustomSource_Add(nom); } object_employe.AutoCompleteMode(AutoCompleteMode.SuggestAppend); object_employe.AutoCompleteSource(AutoCompleteSource.CustomSource); } catch (Exception ex) { Messages.Exception("Form_Add_Empreinte (LoadEmploye)", ex); } Constantes.EMPLOYES = new List <Employe>(employes); }).Start(); }