怎么在combo中加入文字?

来源:百度知道 编辑:UC知道 时间:2024/05/27 16:47:35
记事本中有:
abc
defg
hi
如何将它们导入combo的下拉菜单中啊?请教大虾!

With Me.Combo1
.AddItem ("abc")
.AddItem ("defg")
.AddItem ("hi ")
End With

combobox1.add abc
combobox1.add defg
combobox1.add hi

dim strtemp as string
open "记事本所在路径" for input as #1
do until EoF(1)
line input #1,strtemp
combo1.additem strtemp
loop
close #1

控件名.AddItem(“字符串”)