单项选择题

在窗体上绘制一个名称为List1的列表框,一个名称为Labe11的标签,列表框中显示若干个项目。当单击列表框中的某个项目时,在标签中显示被选中项目的名称。下列能正确实现上述操作的程序是

A.PriVate Sub List1_Click()
Labell.CaptiOn=List.ListIndex
End Sub
B.PriVate Sub List1_Click()
Labell.Name=listl.ListIndex
End Sub
C.Private Sub List1_Click()
Labell.Name=Listl.Text
End Sub
D.Private Sub List1_Click()
Labell.Caption=List1.Text
End Sub