全部题库 / VB / 试题详情
单选题 VB
2008-03-20

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

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

参考答案

D

答案解析

暂无解析

你可能感兴趣的试题