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

A:Private Sub List1_Click() Label1.Caption=List1.ListIndex B:End Sub C:Private Sub List1_Click() D:Label1.Name:List1=ListIndex E:End Sub F:Private Sub List1_Click() G:Label1.Name=List1.Text H:End Sub I:Private Sub List1_Click() J:Laloel1.Caption=List1.Text K:End Sub

窗体上有一个列表框控件List1。以下叙述中错误的是( )。

A:List1中有ListCount-1个列表项 B:当List1. Selected(i)=True,表明第i项被选中 C:设置某些属性,可以使列表框显示多列数据 D:List1. Text的值是最后一次被选中的列表项文本

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

A:Private Sub List1 Click()
Label1.Caption=List1.List-
Index
End Sub
B:Private Sub List1_Click()
Label1.Name=List1. ListIn-
dex
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中项目个数的语句是( )。

A:x8 B:x[8] C:s(0) D:v[8]

在窗体上画一个名称为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.List- Index End Sub B:Private Sub List1_Click() Label1.Name=List1. ListIn- dex 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: B: C: D:

微信扫码获取答案解析
下载APP查看答案解析