单项选择题
在Visual Basic工程中,可以作为“启动对象”的程序是
A.任何窗体或标准模块
B.任何窗体或过程
C.Sub Main过程或其他任何模块
D.Sub Main过程或任何窗体
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
在窗体上画一个名称为Text1的文本框,要求文本框只能接收大写字母的输入。以下能实现该操作的事件过程是
A.Private Sub Text1_KeyPress(KeyAscii As Integer)
If Key Ascii<65 Or KeyAscii>90 Then
MsgBox“请输入大写字母”
KeyAscii=0
End If
End Sub
B.Pfivate Sub Text1_KeyDown(KeyCode As Integer,Shift As Integer)
If KeyCode<65 Or KeyCode>90 Then
MsgBox“请输入大写字母”
KeyCode=0
End If
End Sub
C.Private Sub Text1_MouseDown(Button As Integer,Shift As Integer,X As Single, Y As Single)
If Asc(Text1.Text)<65 Or Asc(Text1.Text)>90 Then
MsgBox“请输入大写字母”
End If
End Sub
D.Private Sub Text1_Change()
If Asc(Text1.Text)>64 And Asc(Text1.Text)<91 Then
MsgBox“请输入大写字母”
End If
End Sub
点击查看答案&解析
单项选择题
下列语句错误的是
A.If a=3 And b=2 Then
c=3
End If
B.If a=1 Then
c=2
Else If a=2
End If
C.If a=3 And b=2 Then
c=2
Else If a=2 Then
c=3
End If
D.If a=1 Then c=2
点击查看答案&解析
相关试题
如图所示,在列表框List1中已经有若干人的...
程序是一个窗体双击事件代码,窗体的名称是...
设有如下程序: Private Sub Form_Clic...
假定建立了一个工程,该工程包括两个窗体,...
在菜单编辑器中建立了一个菜单,名为pmenu...