窗体上添加有3个命令按钮,分别命名为Commandl、Command2和Command3,编写Commandl的单击事件过程,完后能为:当单击按钮Commandl时,按钮Command2可用,按钮Command3不可见。以下正确的是()。
A: PfivateSubCommandlClick()Command2.Visible=TrueCommand3.Visible=False
B: PrivateSubCommandlClick()Command2.Enabled=TrueCommand3.Visible=FalseEndSubEndSub
C: PfivateSubCommandl_Click()Command2.Enabled=TrueCommand3.Visible=False
D: PfivmeSubCommandlclick()Command2.Visible=TrueCommand3.Enabled=FalseEndSubEndSub
A: PfivateSubCommandlClick()Command2.Visible=TrueCommand3.Visible=False
B: PrivateSubCommandlClick()Command2.Enabled=TrueCommand3.Visible=FalseEndSubEndSub
C: PfivateSubCommandl_Click()Command2.Enabled=TrueCommand3.Visible=False
D: PfivmeSubCommandlclick()Command2.Visible=TrueCommand3.Enabled=FalseEndSubEndSub
举一反三
- 窗体上添加有3个命令按钮,分别命名为Commandl、Command2和Command3,编写Commandl的单击事件过程,完成的功能为:当单击按钮Commandl时,按钮Command2可用,按钮Command3不可见。以下正确的是( )。 A: Private Sub Command l Click() Command2.Visible=TrueCommand3.Visible=False B: Private Sub Commandl Click() Command2.Enabled:TrueCommand3.Visible:FalseEnd SubEnd Sub C: Private Sub Commandl_Click() Command2.Enabled=TrueCommand3.Visible=False D: Private Sub Commandl_Click() Command2.Visible:TrueCommand3.Enabled=FalseEnd SubEnd Sub
- 窗体中有3个命令按钮,分别命名为Commandl、Command2和Command3。当单击Cmmandl按钮时,Command2按钮变为可用,Command3按钮变为不可见。下列Commandl的单击事件过程中,正确的是_______。 A: Private Sub Command1_Click( )Command2.Visible=TrueCommand3.Visible=FalseEnd Sub B: Private Sub Command1_Click( )Command2.Enabled=TrueCommand3.Enabled=FalseEnd Sub C: Private Sub Command1_Click( )Command2.Enabled=TrueCommand3.Visible=FalseEnd Sub D: Private Sub Command1_Click( )Command2.Visible=TrueCommand3.Enabled=FalseEnd Sub
- 窗体上有三个按钮Command1、Command2和Command3,如以下代码所示,该程序的功能是______。Private Sub Command1_ Click() Command2. Enabled=False Command3. Visible =FalseEnd Sub A: 当单击按钮Command1时,按钮2和按钮3都不可用 B: 当单击按钮Command1时,按钮2和按钮3都不可见 C: 当单击按钮Command1时,按钮2不可用和按钮3不可见 D: 当单击按钮Command1时,按钮2不可见和按钮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
- 窗体中有3个命令按钮,分别命名为Commandl、Command2和Command3。当单击Cmmandl按钮时,Command2按钮变为可用,Command3按钮变为不可见。下列Commandl的单击事件过程中,正确的是( ) A: Private Sub Command1_Click() Command2.Visible=True Command3.Visible=False End Su B: Private Sub Command1_Click() Command2.Enabled=True Command3.Enabled=False End Su C: Private Sub Command1_Click() Command2.Enabled=True Command3.Visible=False End Su D: Private Sub Command1_Click() Command2.Visible=True Command3.Enabled=False End Su