Selecting default item from Combobox C#

前端 未结 7 977
灰色年华
灰色年华 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:51

    this is the correct form:

    comboBox1.Text = comboBox1.Items[0].ToString();

    U r welcome

提交回复
热议问题