单选题
VB
题号 #484335
在窗体上画一个文本框(其名称为Text1)和一个标签(其名称为Label1),程序运行后,如果在文本框中输入指定的信息,则立即在标签中显示相同的内容。以下可以实现上述操作的事件过程是( )
参考答案
B
答案解析
文本框的Change事件由用户向文本框输入新信息时触发,要实现题目的要求,只需在文本框的Change事件过程中将文本框中的文本(Text1.Text)赋值给标签的标题(Label1.Caption)即可,所以,答案是B。
你可能感兴趣的试题
A.Private Sub List1_Click()
Label1.Caption=List1.ListIndex
List 1.RemoveItem List 1.Text
End Sub
Label1.Caption=List1.ListIndex
List 1.RemoveItem List 1.Text
End Sub
B.Private Sub List1_Click()
Label1.Name=List1.ListIndex
List1.RemoveItem List1.Text
End Sub
Label1.Name=List1.ListIndex
List1.RemoveItem List1.Text
End Sub
C.Private Sub List1_Click()
Label 1.Caption=List 1.Text
List 1.RemoveItem List 1.ListIndex
End Sub
Label 1.Caption=List 1.Text
List 1.RemoveItem List 1.ListIndex
End Sub
D.Private Sub List1_Click()
Label1.Name=List1.Text
List1.RemoveItem List1.ListIndex
End Sub
Label1.Name=List1.Text
List1.RemoveItem List1.ListIndex
End Sub
A.把字符串“AAAA”添加到列表框中,但位置不能确定
B.把字符串“AAAA”添加到列表框的最后(即“Item3”的后面)
C.把列表框中原有的最后一项改为“AAAA”
D.把字符串“AAAA”插入到列表框的最前面(即“Item1”的前面)