网友您好, 请在下方输入框内输入要搜索的题目:
( 21 ) 在窗体上画一个名称为List1 的列表框,一个名称为 Label1 的标签,列表框中显示若干城市的名称 。 当单击列表框中的某个城市名时 , 该城市名从列表框中消失 , 并在标签中显示出来 。 下列能正确实现上述操作的程序是
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
参考答案
更多 “ ( 21 ) 在窗体上画一个名称为List1 的列表框,一个名称为 Label1 的标签,列表框中显示若干城市的名称 。 当单击列表框中的某个城市名时 , 该城市名从列表框中消失 , 并在标签中显示出来 。 下列能正确实现上述操作的程序是A ) Private Sub List1_Click()Label1.Caption = List1.ListIndexList1.RemoveItem List1.TextEnd SubB ) Private Sub List1_Click()Label1. Name = List1. ListIndexList1.RemoveItem List1.TextEnd SubC ) Private Sub List1_Click()Label1.Caption = List1.TextList1.RemoveItem List1.ListIndexEnd SubD ) Private Sub List1_Click()Label1.Name = List1.TextList1.RemoveItem List1.ListIndexEnd Sub ” 相关考题
![瑞牛题库 章节练习 历年真题 模拟试卷](http://assets.51tk.com/51_sidebar_right_index.jpg)