itgle.com

执行下列程序后,鼠标单击窗体,输出结果为Private Sub Form_Click()Print "Click";End SubPrivate Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)Print "Donw"End SubPrivate Sub Form_MouseUp(ButtonAs Integer,Shift As Integer,X As Single,Y As Single)Pr

题目

执行下列程序后,鼠标单击窗体,输出结果为

Private Sub Form_Click()

Print "Click";

End Sub

Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)

Print "Donw"

End Sub

Private Sub Form_MouseUp(ButtonAs Integer,Shift As Integer,X As Single,Y As Single)

Print "Up"

End Sub

A.DownUpClick

B.ClickDownUp

C.DownClickUp

D.UpDownCliek


相似考题
更多“执行下列程序后,鼠标单击窗体,输出结果为Private Sub Form_Click()Print "Click";End SubPrivate ”相关问题
  • 第1题:

    在程序运行时,下面的叙述中正确的是

    A.用鼠标右键单击窗体中无控件的部分,会执行窗体的Form. L0ad事件过程

    B.用鼠标左键单击窗体的标题栏,会执行窗体的Form_Click事件过程

    C.只装入而不显示窗体,也会执行窗体的Form. Load事件过程

    D.装入窗体后,每次显示该窗体时,都会执行窗体的Form_Click事件过程


    正确答案:C
    解析:当加载窗体时,系统自动触发该窗体的Load事件;当窗体成为一个活动窗口时,触发Activate事件;单击窗体空白处时,会触发窗体Click事件;选项A)触发的是Form_Click事件;选项B)用鼠标左键单击窗体的标题栏,不会触发Form_Click事件过程;选项D)触发的是Form_Activate事件过程。所以正确答案为C)。

  • 第2题:

    执行下列程序后,鼠标单击窗体,输出结果为

    Private Sub Form_Click()

    Print "Click";

    End Sub

    Private Sub Form_mouseDown(Button As Integer,Shift

    As Integer, X As Single, Y As Single)

    Print "Donw"

    End Sub

    Private Sub Form_MouseUp(ButtonAsInteger,Shift

    As Integer, X As Single, Y As Single)

    Print "Up"

    End Sub

    A.DownUpClick

    B.ClickDownUp

    C.DownClickUp

    D.UpDownClick


    正确答案:A
    解析:鼠标单击时,依次引发MouseDown、MouseUp和Click事件,即Click事件包含鼠标按下和放开事件。

  • 第3题:

    执行下列程序后,鼠标单击窗体,输出结果为。 Private Sub Form_Click() Print“Click”; End Sub Private Sub Form_MouseDown(Button As Integer,Shift_ As Integer,X As Single,Y As Single) Print “Donw” End Sub Private Sub Form_MouseUp(Button As Integer,Shift_ As Integer,X As Single,Y As Single) Print“Up” End Sub

    A.DownUpClick

    B.ClickDownUp

    C.DownClickUp

    D.UpDownClick


    正确答案:A
    解析:鼠标单击时,依次引发MouseDown、MouseUp、Click事件,即Click事件包含鼠标按下和放开事件。

  • 第4题:

    执行下列程序后,鼠标单击窗体,输出结果为

    A.DownUpCliek

    B.CliekDownUp

    C.DownCliekUp

    D.UpDownClick


    正确答案:A
    鼠标单击时,依次引发MouseDown、MouseUp、Click事件,即Click事件包含鼠标按下和放开事件。

  • 第5题:

    执行下列程序后,鼠标单击窗体,输出结果为 Private Sub Form_Click() Print"Click": End Sub Private Sub Form_MouseDown(Button As Integer,Shift_As Integer,X As Single,Y As Single) Print"Donw" End Sub Private Sub Form_MouseUp(Button As Integer,Shift_As Integer,X As Single,Y As Single) Print"Up" End Sub

    A.DownUpClick

    B.CfickDownUp

    C.DownClickUp

    D.UpDownClick


    正确答案:A