P53.窗体上有一个名为text1的文本框和一个名为command1的命令按钮,事件过程如下程序运行时单击命令按钮,文本框中显示的值是()
A.2
B.3
C.4
D.5
A.2
B.3
C.4
D.5
窗体中有一个名为Command1的命令按钮和一个名为Text1的文本框,事件代码如下: Private Sub Command1_Click Dim a(10)As Integer,b(10)As Integer n=3 For i=1 T0 5 a(i)=i b(n)=2*n+i Next i Me!Text1=a(n)+b(n) End Sub 打开窗体,单击命令按钮,文本框Text1中显示的内容是()。
A.13
B.14
C.15
D.16
A.5
B.8
C.9
D.10
A.12
B.13
C.14
D.15
Private sub ommand 1 click()
Dim x as Integer,n as Integer
x=1
n=0
Do Whilex<20
x=x*3
n=n+1
Loop
text1=str(x)
text2=str(n)
End Sub
程序运行后,单击命令按钮,在两个文本框text1和text2中显示的值分别是()。
A、15和1
B、27和3
C、195和3
D、600和4
A.This.ThisForm.Text1.Value
B.This.Parent.Parent.Text1.Value
C.Parent.Parent.Text1.Value
D.This.Parent.Text1.Value
A.15和1
B.27和3
C.195和3
D.600和4
A.Private Sub Command1_Click()
Text1.Left=100
End Sub
B.Private Sub Command1_Click()
Text1.Left= Text1.Left-100
End Sub
C.Private Sub Command1_Click()
Text1.Move.Text.Left+100
End Sub
D.Private Sub Command1_Click()
Text1.Move.Text.Left
End Sub
Private Sub Command1_Click()
x = InputBox("x=")
y = InputBox("y=")
Print x + y
End Sub
运行后,单击命令按钮,先后在两个输入对话框中输入123和321,窗体显示的内容是()。
A、 444
B、 123321
C、 123+321
D、 出错信息