全部题库 / VB / 试题详情
单选题 VB
2009-04-18

设窗体上有一个列表框控件List1,且其中含有若干列表项。则以下能表示当前被选中的列表项内容的是(  )

A.List1.List
B.List1.Listlndex
C.List1.Index
D.List1.Text

参考答案

D

答案解析

列表框的Text属性的值为最后一次选中的列表项的文本。所以,答案是D。

你可能感兴趣的试题

A.Private Sub List1_Click()
Label 1.Caption=List1.ListIndex
End Sub
B.Private Sub List1_Clicd()
Label1.Name=List1.ListIndex
End Sub
C.Private Sub Listl_Click()
Label1.Name=List1.Text
End Sub
D.Private Sub List 1 Click()
Label 1.Caption=List 1.Text
End Sub