Как отобразить список в combobox
I am using windows form. I have a list of table names. I want to display these name in combbox. It means when user click on combobox then all tables name should be listed for selection of one table.
Что я уже пробовал:
List<string> listDiff = new List<string>(); if (!Utils.ComTable(livetables, testTables)) { listDiff.Add(livetables.TableName); } Here i want to display listDiff in combobox private void cboDatabase1_Click(object sender, EventArgs e) { //What code should be here to display listDiff } Here cboDatabase1 method will be called when user will click on combobox.