更多"在窗体上画一个名称为List1的列表框,一个名称为Label1的标签,"的相关试题:
[单项选择]在窗体上画一个名称为List1的列表框,一个名称为Label1的标签,列表框中显示若干个项目。当单击列表框中的某个项目时,在标签中显示被选中项目的名称。下列能正确实现上述操作的程序是
A. Private Sub List1_Click( ) Label1.Caption=List1.List1ndex End Sub
B. Private Sub List1_Click( ) Label1.Name=List1.List1ndex End Sub
C. Private Sub List1_Click( ) Label1.Name=List1.Text End Sub
D. PrivateSubList1_Click( ) Label1.Caption=List1.Text End Sub
[单项选择]在窗体上画一个名称为List1的列表框,一个名称为Label1的标签,列表框中显示若干 个项目。当单击列表框中的某个项目时,在标签中显示被选中项目的名称。下列能正确 实现上述操作的程序是:_____。
A. Private Sub List1_Click() Label1.Caption = List1.ListIndex End Sub
B. Private Sub List1_Click() Label1.Name=List1.Lis tIndex End Sub
C. Private Sub List1_Click() Label1.Name=List1.Text End Sub
D. Private Sub List1_Click() Label1.Caption =List1.Text End Sub
[单项选择]在窗体上画一个名称为List1的列表框,一个名称为Label1的标签,列表框中显示若干个项目。单击列表框中的某个项目时,在标签中显示被选中项目的名称。下列能正确实现上述操作的程序是______。
A. Private Sub List1_Click() Label1. Caption=List1. List1ndex 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
[单项选择]在窗体上画一个名为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
[单项选择]在窗体上画一个名称为List1的列表框,一个名称为Label1的标签。列表框中显示若干项内容。当单击列表框中的某项内容时,该项内容能在标签中显示出来。下列能够正确实现上述功能的程序是______。
A. Private Sub List1_Click( )
B. Private Sub List1_Click( )
C. Private Sub List1_Click( )
D. Private Sub List1_Click( )
[单项选择]在窗体上画一个名称为List1的列表框,一个名称为Label1的标签,列表框中显示若干城市的名称。当单击列表框中的某个城市名时,该城市名从列表框中消失,并在标签中显示出来。下列能正确实现上述操作的程序是【 】
[单项选择]在窗体上画一个名称为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
[单项选择]在窗体上画一个名称List1的列表框,一个名称为Label1的标签。列表框中显示若干城市的名称。当单
A. Private Sub list1_Click() Label1. Caption= List1. ListIndex End Sub
B. Private Sub Listl_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