public void FillCategoryCombo() { try { BusinessManager BM = new BusinessManager(); cboxProductCategory.AutoCompleteSource = AutoCompleteSource.ListItems; //cboxProductCategory.DropDownStyle = ComboBoxStyle.DropDownList; cboxProductCategory.DisplayMember = "CategoryName"; //cboxProductCategory.ValueMember = "CategoryName"; cboxProductCategory.DataSource = BM.BALFillCategoryCombo().Tables[0]; } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }