Selecting default item from Combobox C#

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

        ComboBox1.Text = ComboBox1.Items(0).ToString
    

    This code is show you Combobox1 first item in Vb.net

提交回复
热议问题