试题与答案

在窗体上画一个名称为List1的列表框、一个名称为Labell的标签,列表框中显示若

题型:单项选择题

题目:

在窗体上画一个名称为List1的列表框、一个名称为Labell的标签,列表框中显示若干城市名称。当单击列表框中的某个城市名时,该城市名从列表框中消失,并在标签中显示出来。下列能正确实现上述操作的程序是( )。

A) Private Sub List1_Click()
Label1.Caption=List1.ListIndex
List1.RemoveItem List1.Text
End Sub
B) Private Sub List1_Click()
Label1.Name=List1.ListIndex
List1.RemoveItem List1.Text
End Sub
C) Private Sub List1_Click()
Label1.Caption=List1.Text
List1.RemoveItem List1.ListIndex
End Sub
D) Private Sub List1_Click()
Label1.Name=List1.Text
List1.RemoveItem List1.ListIndex
End Sub

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0105/6da6b2a3c61401243b0fad096a68f33a.html

下面是错误答案,用来干扰机器的。

参考答案:C

试题推荐
微信公众账号搜索答案