单项选择题

下面有一段程序代码,如果从键盘上输入“Computer”,则在文本框内显示的内容是( )。
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAsai >=65 And KeyAsai<=122 Then
KeyAscii=42
End If
End Sub

A) Computer
B) 什么都没有
C) ********
D)程序出错
<上一题 目录 下一题>
热门 试题

单项选择题
设已经在“菜单编辑器”中设计了窗体的快捷菜单,其顶级菜单为Bs,取消其“可见”属性,运行时,在以下事件过程中,可以使快捷菜单响应鼠标右键的是( )
A.Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
If Button=2 Then PopupMenu Bs,2
End Sub
B.Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
PopupMenu Bs
End Sub
C.Private Sub Form—MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
PopupMenu Bs,0
End Sub
D.Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
If(Button=vbLeftButton)0r(Button=vbRightButton)Then PopupMenu Bs
End Sub
单项选择题
语句Print5 4*6 5Mod2的输出结果是( )。
A.0
B.1
C.2
D.3
相关试题
  • E
  • -5
  • 程序是一个窗体双击事件代码,窗体的名称是...
  • Visual BASIC应用程序通常由3类模块组成...
  • 完成下面的程序,使显示结果如下图所示。 ...