单项选择题

在窗体上画一个名称为List1的列表框,一个名称为Labell的标签,在列表框中显示若干项内容。当单击列表框中的某项内容时,该项内容能在标签中显示出来。下列能够正确实现上述功能的程序是

A.Private Sub List1_Click()
Labell.Caption=List1.ListIndex
End Sub
B.Private Sub List1_Click()
Labell.Name=List1.ListIndex
End Sub
C.PrivateSubListl click()
Labell.Name=List1.Text
End Sub
D.Private Sub List1_Click()
Labell.Caption=List1.Text
End Sub