窗体上有3个按钮Commandl、Command2和Command3,如以下代码: Private Sub Commandl Click() Command2.Enabled:Fal3e Command3.Vi3ible=Fal3e End Sub 该程序的功能是 ( )
A.当单击按钮Command1时, Command2和Command3按钮不可用
B.当单击按钮Command1时, Command2和Command3按钮不可见
C.当单击按钮Command1时, Cammand2按钮不可用和Command3按钮不可见
D.当单击按钮Command1时, Command2按钮不可见和Command3按钮不可用
第1题:
窗体中有3个命令按钮,分别命名为Commandl、Command2和Command3。当单击Commandl按钮时,Command2按钮变为可用,Command3按钮变为不可见。下列Corn—mandl的单击事件过程中,正确的是( )。
A.private sub Command1 Click( ) Command2.Visible—trueCommand3.Visible—false End Sub
B.private sub Commandl Click( ) Command2.Enable—trueCommand3.Enable=falseEnd Sub
C.private sub Command1 Click( ) Command2.Enable—trueCommand3.Visible—falseEnd Sub
D.private sub Command1 Click( ) Command2.Visible=trueCommand3.Enable—falseEnd Sub
第2题:
窗体上添加有3个命令按钮,分别命名为Command1、Command2和Command3。编写Commandl的单击事件过程,完成的功能为:当单击按钮Command1时,按钮Command2可用,按钮Command3不可见。以下正确的是( )。
A.Private Sub Command1_C1ick() Command2.Visible=True Command3.Visible=False End Sub
B.Private Sub Commandl_C1ick() Command2.Enabled=True Command3.Enabled=False End Sub
C.Private Sub Conunand1_C1ick() Command2.Enabled=True Command3.Visible=False End Sub
D.Private Sub Command1_Click() Command2.Visible=True Command3.Enabled=False End Sub
第3题:
【单选题】窗体中有3个命令按钮,分别命名为Commandl、Command2和Command3。当单击Cmmandl按钮时,Command2按钮变为可用,Command3按钮变为不可见。下列Commandl的单击事件过程中,正确的是_______。
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
第4题:
窗体中有3个命令按钮,分别命名为Commandl、Command2和Command3。当单击Cmmandl按钮时,Command2按钮变为可用,Command3按钮变为不可见。下列Corn.mandl的单击事件过程中,正确的是
A.Private Sub Commandl—click() Command2.ViSible=True Command3.ViSible=False End Sub
B.Private Sub Commandl_click() Command2.Enabl ed=True Command3.Enabl ed=False End Sub
C.Private Sub Commandl_C1ick() Command2.Enabled=True Command3.ViSible=False End Sub
D.Private Sub Commandl_C1ick() Coiihmand2.Vi s ible:True Command3.Enabled=False End Sub
第5题:
在窗体上画三个命令按钮,其名称分别为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隐藏