A、ListBox1.Items.Add(“HowareYou“)
B、ListBox1.Items.Insert(“HowareYou“)
C、ListBox1.Items.Add(2,“HowareYou“)
D、ListBox1.Items.Insert(2,“HowareYou“)
第1题:
第2题:
Visual Basic 提供了列表框控件,当列表框中的项目较多。超过了列表框的长度时,系统会自动在列表框边上加一个【 】。
第3题:
向列表框中的最后填加一个新项目,正确的语句是()
AListBox1.Items.Add ("How are You")
BListBox1.Items.Insert ("How are You")
CListBox1.Items.Add (2, "How are You")
DListBox1.Items.Insert (2, "How are You")
第4题:
此题为判断题(对,错)。
第5题:
在窗体上画一个驱动器列表框、一个目录列表框和一个文件列表框,其名称分别为 Drivel、Dirl和Filel。当改变目录列表框的内容时,要求文件列表框中显示当前选中的文件夹中的内容,则在Dirl_Change事件过程中应使用的语句是______。
A.Dirvel.Drive=Dirl.Path
B.Dirl.Path=Drivel.Drive
C.Dirl.Path=Filel.Path
D.Filel.Path=Dirl.Path