假设我有这些物品:
comboBox.Items.Add("Access"); // make it equal to 31
comboBox.Items.Add("Create"); // make it equal to 34
comboBox.Items.Add("Delete"); // make it equal to 36
comboBox.Items.Add("Modify"); // make it equal to 38
现在,我打电话
comboBox.SelectedIndex = 34; // want to "Create" item has been chosen
最简单的方法是什么?