工程中有2个窗体,名称分别为Form1、Form2,Form1为启动窗体,该窗体上有命令按钮Command1。要求程序运行后单击该命令按钮时显示Form2,则按钮的Click事件过程应该是______。
A: Private Sub Command1_Click() Form2.Visible End Sub
B: Private Sub Command1_Click() Form2.Show End Sub
C: Private Sub Command1_Click() Form2.Load End Sub
D: Private Sub Command1_Click() Load Form2 End Sub
A: Private Sub Command1_Click() Form2.Visible End Sub
B: Private Sub Command1_Click() Form2.Show End Sub
C: Private Sub Command1_Click() Form2.Load End Sub
D: Private Sub Command1_Click() Load Form2 End Sub
举一反三
- 工程中有两个窗体,名称分别为Form1、Form2,Form1为启动窗体,该窗体上有命令按翎Command1.要求程序运行后单击该命令按钮时显示Form2,则按钮的Click事件过程应该是 A: Private Sub Command1_Click() B: Form2.Show C: End Sub D: Private Sub Command1_Click() E: Form2.Visible F: End Sub G: Private Sub Command1_Click() H: Load Form2 I: End Sub J: Private Sub Command1_Click() K: Form2.Load L: End Sub
- 已知两个窗体Form1、Form2,下列事件过程中,______ 可以实现单击窗体Form1的命令按钮时,显示窗体Form2,而窗体Form1消失。 A: Private Sub Command1_ Click() LoadForm2 Form1. Hide End Sub B: Private Sub Command1_ Click() Show Form2 Form1. Hide EndSub C: Private Sub Command1_ click() Show Form2 Form1. Hide End Sub D: Private Sub Command1_ click()
- 当双击窗体Form1时,要将窗体Form1隐藏起来、将窗体Form2以模式方式显示出来的事件过程,正确的是 A: Private Sub Form _ Db1Click( )Forml.HideForm2.Show 0End Sub B: Private Sub Form _ Db1Click( )Form1.HideForm 2.Show 1End Sub C: Private Sub Form _ Click( )Form l.HideForm 2.ShowEnd Sub D: Private Sub Form _ Dbl Click( )Form l.Enabled=FalseForm 2.Enabled=TrueEnd Sub
- 设工程中有Form1、Form2两个窗体,要求单击Form2上的Command1命令按钮,Form2就可以从屏幕上消失,下面的事件过程中不能实现此功能的是 A: Private Sub Command1_Click() Form2.Hide End Sub B: Private Sub Command1_Click() Unload Me End Sub C: Private Sub Command1_Click() Form2.Unload End Sub D: Private Sub Command1_Click() Me.Hide End Sub
- 设工程中有Form1、Form2两个窗体,要求单击Form2上的Command1命令按钮,Form2就可以从屏幕上消失,下面的事件过程中不能实现此功能的是( )。 A: A) Private Sub Command1_Click() B: Form2. Hide C: End Sub D: B) Private Sub Command1_Click() E: Unload Me F: End Sub G: C) Private Sub Command1_Click() H: Form2. Unload I: End Sub J: D) Private Sub Command1_Click() K: Me. Hide L: End Sub