ListBox1.Items[ListBox1.Items.Count]
ListBox1.Items[ListBox1.SelectedIndex]
ListBox1.Items[ListBox1.Items.Count-1]
ListBox1.Items[ListBox1.SelectedIndex-1]
第1题:
下列关于Web服务器端ListBox控件的说法不正确的是( )。
A.ListBox控件显示为列表框
B.ListBox控件只能实现单选
C.ListBox控件的选项中可以有默认选项
D.ListBox控件可以设置列表的显示高度
第2题:
A、ListBox1.Items(ListBox1.Items.Count)
B、ListBox1.Items(ListBox1.Items.Count-1)
C、ListBox1.Text
D、ListBox1.Items(ListBox1.SelectedIndex)
第3题:
引用列表框(Listl)最后一个数据项应使用的表达式是( )。
A.Listl.List(List..ListCount)
B.Listl.List(Listl.ListCount-1)
C.Listl.List(ListCount)
D.Listl.List(ListCount-1)
第4题:
A、List1.List(List1.ListCount)
B、List1.List(List1.ListCount-1)
C、List1.List(ListCount)
D、List1.List(ListCount-1)
第5题:
A、Listbox1.Items.Cls
B、ListBox1.Items.Remove(4)
C、ListBox1.Items.Remove(“计算机“)
D、ListBox1.Items.Add(1,“打印机“)
第6题:
A. 移去第一项
B. 移去最后一项
C. 程序无操作
D. 程序出错
第7题:
A、ListBox1.Items.Add(“HowareYou“)
B、ListBox1.Items.Insert(“HowareYou“)
C、ListBox1.Items.Add(2,“HowareYou“)
D、ListBox1.Items.Insert(2,“HowareYou“)
第8题:
引用列表框(List1) 最后一个数据项应使用
A.List1.List(List1.ListCount)
B.List1.List(List.ListCount-1)
C.Lisl1.List(ListConut)
D.List1.List(ListCount-1)
第9题:
在窗体中添加一个列表框(ListBox1)和一个命令按钮,并编写如下代码: Private Sub Commandl_Click() Dim a, i, msg msg="Choose OK to add 100 items to your listbox." MsgBox msg For i=l To 100 a="a:" &i ListAddltem a Next i End Sub 程序完成的功能是 ( )
A.本程序使用Addltem方法增加100项给一个列表框
B.本程序使用Addltem方法向一个列表框中添加100项,其内容是数字1~100
C.本程序使用Addltem方法向一个列表框中添加的内容是1~100的和
D.本程序使用Addhem方法增加100个列表框
第10题:
可通过()属性判断ListBox列表框控件的项目总数目。
AListIndex
BListText
CListcount
D随机数