更多"窗体上添加有 3 个命令按钮,分别命名为 Command1、Comma"的相关试题:
[单项选择]窗体上添加有 3 个命令按钮,分别命名为 Command1、Command2 和 Command3。编写 Command1 的单击事件过程,完成的功能为:当单击按钮 Command1 时,按钮Command2 可用,按钮 Command3 不可见。以下正确的是______。
A. Private Sub Command1_Click() Command2.Visible=True Command3.Visible=False End Sub
B. Private Sub Command1_Click() Command2.Enabled=True Command3.Enabled=False End Sub
C. Private Sub Command1_Click() Command2.Enabled=True Command3.Visible=False End Sub
D. Private Sub Command1_Click() Command2.Visible=True Command3.Enabled=False End Sub
[单项选择]
窗体上添加有3个命令按钮,分别命名为Command1、Command2和Command3。编写 Command1的单击事件过程,完成的功能为:当单击按钮Command1时,按钮Command2 可用,按钮Command3不可见d以下正确的是()。
A. Private Sub Command1_Click() Command2.Visible=True Command3.Visible=False End Sub
B. Private Sub Command1_Click() Command2.Enabled=True Command3.Enabled=False End Sub
C. Private Sub Command1_Click() Command2.Enabled=True Command3.Visible=False End Sub
D. Private Sub Command1_Click() Command2.Visible=True Command3.Enabled=False End Sub
[单项选择]窗体上添加有3个命令按钮,分别命名为Command1、Command2和Command3,编写Command1的单击事件过程,完成的功能为:当单击按钮Command1时,按钮 Command2可用,按钮Command3不可见。以下事件过程中正确的是( )。
A. Private Sub Command 1 Click() Command2.Visible=True Command3.Visible=False End Sub
B. Private Sub Command1 Click() Command2.Enabled=True Command3.Visible=False End Sub
C. Private Sub Command1_Click() Command2.Enabled=True Command3.Visible=False End Sub
D. Private Sub Command1 Click() Command2.Visible=True Command3.Enabled=False End Sub
[单项选择]在窗体上画三个命令按钮,其名称分别为Command1、Command2和Command3,然后编写如下事件过程: Private Sub Command1 Click( ) Command2.Enabled = False Command3.Visible = False End Sub程序运行后,单击命令按钮Command1,则执行的操作是______。
A. 命令按钮Command2和Command3禁用
B. 命令按钮Command2和Command3隐藏
C. 命令按钮Command2隐藏,Command3禁用
D. 命令按钮Command2禁用,Command3隐藏
[单项选择]窗体中有3个命令按钮,分别命名为Command1、Command2和Command3。当单击Eommand1按钮时,Command2按钮变为可用,Command3按钮变为不可见。下列Command1的单击事件过程中,正确的是()。
A. Private Sub Command1_Click() Command2.Visible=True Command3.Visible=False End Sub
B. Private Sub Command1_Click() Command2.Enabled=True Command3.Enabled=False End Sub
C. PrivateSubCommand1_Click() Command2.Enabled=True Command3.Visible=False End Sub
D. Private Sub Command1_Click() Command2.Visible=True Command3.Enabled=False End Sub
[单项选择]窗体中有3个命令按钮,分别命名为Command1、Command2和Command3。当单击Command1按钮时,Command2按钮变为可用,Command3按钮变为不可见。下列Command1的单击事件过程中,正确的是
A. Private sub Command 1_Click() Command2.Visible=True Command3.Visible=False End Sub
B. Private sub Command1_Click() Command2.Enable=True Command3.Enable=False End Sub
C. Private sub Command1_Click() Command2.Enable=True Command3.Visible=False End Sub
D. Private sub Command1_Click() Command2.Visible=True Command3.Enable=False End Sub
[单项选择]在窗体上画一个命令按钮,然后编写下列程序:
Private Sub Command3_Click( )
Tcl 2
Tcl 3
Tel 4
End Sub
Sub Tcl(a As Integer)
Static x As Integer
x=x + a
Print x;
End Sub
程序运行后,单击命令按钮,输出结果为( )。
A. ResultSet
B. Connection
C. Statement
D. 以上都不是