单选题 在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程:
Private Sub Form Load()
List1.AddItem "Item 1"
List1.Addltem "Item 2"
Listl.Addltem "Item 3"
End Sub
Private Sub Command1 Click()
Listl.List(Listl.ListCount)="AAAA"
End Sub
程序运行后,单击命令按钮,其结果为

【正确答案】 B
【答案解析】[解析] List属性用来列出表项的内容,可以加下标用“()”括起来配合使用。 ListCount是列表框一个很重要的属性,它返回列表框中表项的数量。同时还要注意列表框ListIndex属性值是从0开始,而不是从1开始。Listl.ListCount返回值为3,所以应该是插入到第4个位置,即选项 B是正确的。