情境: 加入ComboBox資料,使用code的方法

方法:

ComboBox3.Items.Clear()

ComboBox3.Items.Add("123")

ComboBox3.Items.Add("456")

加入clear原因是 如果要更換新的,要先清空combox再加入,否則會一直疊加上去

可以參考微軟官網:https://docs.microsoft.com/zh-tw/dotnet/desktop/winforms/controls/add-and-remove-items-from-a-wf-combobox?view=netframeworkdesktop-4.8

arrow
arrow
    文章標籤
    VB ComboBox1 新增combox資料
    全站熱搜

    JL8051 發表在 痞客邦 留言(0) 人氣()