在窗体上画一个名称为TxtA的文本框,然后编写如下的事件过程: Private Sub TxtA_KeyPress(KeyAscii As Integer) …… End Sub 假定焦点已经位于文本框中,则能够触发KeyPress事件的操作是()。
A.单击鼠标 B.双击文本框 C.鼠标滑过文本框 D.按下键盘上的某个键
单项选择题以下叙述中正确的是()。
A.一个Sub过程至少要有一个Exit Sub语句 B.一个Sub过程必须有一个End Sub语句 C.可以在Sub过程中定义一个Function过程,但不能定义Sub过程 D.调用一个Function过程可以获得多个返回值
单项选择题在窗体上画一个名称为List1的列表框,一个名称为Label1的标签,列表框中显示若干城市的名称。当单击列表框中的某个城市名时,该城市名从列表框中消失,并在标签中显示出来。下列能正确实现上述操作的程序是()。
A.Private Sub List1_Click() Label1.Caption=List1.ListIndex List1.RemoveItem List1.Text End Sub B.Private Sub List1_Click() Label1.Name=List1.ListIndex List1.RemoveItem List1.Text End Sub C.Private Sub List1_Click() Label1.Cavtion=List1.Text List1.RemoveItem List1.ListIndex End Sub D.Private Sub List1_Click() Label1.Name=List1.Text List1.RemoveItem List1.ListIndex End Sub