题目
在窗体上画一个名称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
第1题
第2题
第3题
在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程: Private Sub Form_Load() List1. AddItem"Item1" List1.AddItem"Item2" List1. AddItem"Item3" End Sub Private Sub Command1_Click() List1. List(List1. ListCount)="AAAA" End Sub 程序运行后,单击命令按钮,其结果为______。
A.把字符串“AAAA”添加到列表框中,但位置不能确定
B.把字符串“AAAA”添到列表框的最后(即“Item3”的后面)
C.把列表框之中原有的最后一项改为“AAAA”
D.把字符串“AAAA”插入到列表框的最前面(即“Iteml”的前面)
第4题
在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程。 Private Sub Form_Load() List1.AddItem "Item 1" List1.AddItem "Item 2" List1.AddItem "Item 3" End Sub Private Sub Command1_Click() List1.List(List1.Listcount)="AAAA" End Sub 程序运行后,单击命令按钮,其结果为
A.把字符串"AAAA"添加到列表框中,但位置不能确定
B.把字符串"AAAA"添加到列表框的最后(即"Item 3"的后面)
C.把列表框中原有的最后一项改为"AAAA"
D.把字符串"AAAA"插入到列表框的最前面(即"Item 1"的前面)
第5题
在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程。
Private Sub Form_load()
List1.AddItem "Itern 1"
List1.AddItem "Itern 2"
List1.AddItem "Itern 3"
End Sub
Private Sub Command1_Click()
List1.List(List1.Listcount)="AAAA"
End Sub
程序运行后,单击命令按钮,其结果为
A.把字符串"AAAA"添加到列表框中,但位置不能确定
B.把字符串"AAAA"添加到列表框的最后(即"Item 3"的后面)
C.把列表框中原有的最后一项改为"AAAA"
D.把字符串"AAAA"插入到列表框的最前面(即"Item 1"的前面)
第6题
A.List1.Removeltem List1.Text
B.List1.Removeltem List1.CIear
C.List1.Removeltem List1.ListCount
D.List1.Removeltem List1.Listlndex
第7题
A.Private Sub List_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
第8题
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
第9题
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
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!