单选题
VB
2018-02-07
设窗体上有一个列表框控件Listl,含有若干列表项。以下能表示当前被选中的列表项内容的
是( )。
A.Listl.Liet
B.Listl.Lisflndex
C.Listl.Text
D.Listl.Index
参考答案
C
答案解析
Listl的List属性是设置或返回列表框中的列表项内容;ListIndex属性设置或返商当前选中的列表项的索引值;Index属性是用来区分列表框控件数组中各List控件;Text属性设置或返回当前所选中列表项的文本内容。故选C。
你可能感兴趣的试题
A.Private Sub Textl_Change( )
Labell.Caption=Str(Len(Textl.Text))End Sllb
Labell.Caption=Str(Len(Textl.Text))End Sllb
B.Private Sub Textl—Click( )
Labell.Caption=Str(Len(Textl.Text))End Sub
Labell.Caption=Str(Len(Textl.Text))End Sub
C.Private Sub Textl_Change( )Labell.Caption=Textl.TextEnd Sub
D.Private Sub I_abell_Change( )
Labell.Caption=Str(Len(Textl.Text))End Sub
Labell.Caption=Str(Len(Textl.Text))End Sub
A.Optionl.Value=FalseCheckl.Value=Tme
B.Opfionl.Value=TrueCheckl.Value=0
C.Option2.Value:FalseCheckl.Value=2
D.Optionl.Value=TreeCheckl.Value=l
A.当焦点在某个控件上时,按下一个字母键,就会执行该控件的KeyPress事件过程
B.因为窗体不接受焦点,所以窗体不存在自己的KeyPress事件过程
C.若按下的键相同,KeyPress事件过程中的KeyAscii参数与KeyDown事件过程中的KeyCode参数的值也相同
D.在KeyPress事件过程中,KeyAscii参数可以省略