Selecting default item from Combobox C#

前端 未结 7 851
灰色年华
灰色年华 2021-01-03 18:25

I have few items on my ComboBox items collection, and i\'d like to select one item from this list and set it as default item - when app starts - this item is al

相关标签:
7条回答
  • 2021-01-03 18:54

    This means that your selectedindex is out of the range of the array of items in the combobox. The array of items in your combo box is zero-based, so if you have 2 items, it's item 0 and item 1.

    0 讨论(0)
提交回复
热议问题