[单选题]

对窗体编写如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single, Y As Single) If Button=2 Then Print "AAAAA" End If End Sub Private Sub Form_MouseUp(Button As Integer,Shift As Integer,X As Single, Y As Single) Print "BBBBB" End Sub 程序运行后,如果单击鼠标右键,则输出结果为 ______ 。

A.AAAAA BBBBB

B.BBBBB

C.AAAAA

D.BBBBB AAAAA

参考答案与解析:

相关试题

对窗体编写如下事件过程:Private Sub Form_MouseDown(B

[单选题]对窗体编写如下事件过程:Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single Y As Single)If Button=2ThenPrint"AAAAA"EndIfEndSubPrivate Sub Form_MouseUp(Button As Integer,Shift As Integer,X As Single,Y As Single)Print"BBBBB&quo

  • 查看答案
  • 编写如下事件过程:Private Sub Form_MouseDown(Butt

    [单选题]编写如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Shift=6 And Button=2 Then Print"BBBB" End If End Sub 程序运行后,为了在窗体上输出“BBBB”,应执行的操作为 ______。A.同时按下Shift键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.同时按

  • 查看答案
  • 编写如下事件过程:Private Sub Form_MouseDown(Butt

    [单选题]编写如下事件过程: Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If Shift=6 And Button=2 then Print"BBBB" End If End Sub 程序运行后,为了在窗体上输出“BBBB”,应执行的操作为______。A.同时按下Shift键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.同

  • 查看答案
  • 假定编写如下事件过程:Private Sub Form_MouseDown(Bu

    [单选题]假定编写如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If(Button and 3)=3 then Print"Hello" End if End Sub 程序运行后,为了在窗体上输出“Hello”,应该窗体上执行以下( )操作。A.只能按下左键并拖动B.只能按下右键并拖动C.必须同时按下左、右键并拖动D.按下左键拖动或按下右键拖动

  • 查看答案
  • 编写了如下事件过程:Private Sub Form_MouseDown(Key

    [单选题]编写了如下事件过程: Private Sub Form_MouseDown(KeyCode As Integer,Shift As Integer) If (Button And 3)=3 Then Print"AAAA" End If End Sub 程序运行后,为了在窗体上输出“AAAA”,应按下的鼠标键是A.左B.右C.同时按下左和右D.按什么键都不显示

  • 查看答案
  • 对窗体编写如下事件过程:Private Sub Form_ MouseDown(

    [单选题]对窗体编写如下事件过程: Private Sub Form_ MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button =2 Then Print “AAAAA” End If End Sub Private Sub Form_ MouseUp (Button As Integer,Shift As Integer,X As Single,Y As Single) Print “BBBBB” E

  • 查看答案
  • 假定编写了如下事件过程:Private Sub Form_MouseDown(B

    [单选题]假定编写了如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single, Y As Single) If Button=2 Then Print "aaaa" End If End Sub 程序运行后,为了在窗体上输出“AAAA”,应按下的鼠标键为A.左键B.右键C.同时按下左、右键D.按什么键都不显示

  • 查看答案
  • 编写如下事件过程:Private Sub Form£­MouseDown(But

    [单选题]编写如下事件过程: Private Sub Form-MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Shift=6 And Button=2 Then Print"Hello" End If End Sub 程序运行后,为了在窗体上输出“Hello”,应在窗体上执行以下( )操作。A.同时按下Shift键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.同

  • 查看答案
  • 假设有如下事件过程:Private Sub Form_MouseDown(But

    [单选题]假设有如下事件过程: Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) If Button=2 Then PopupMenu popForm End If End Sub 则以下描述中错误的是______。A.该过程的功能是弹出一个菜单B.popForm是在菜单编辑器中定义的弹出式菜单的名称C.参数x、y指明鼠标的当前位置D.Button=2表示按下的是鼠标左键

  • 查看答案
  • 假定有如下事件过程:Private Sub Form_MouseDown(But

    [单选题]假定有如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=2 Then PopupMenu popForm End If End Sub 则以下描述中错误的是( )。A.该过程的功能是弹出一个菜单B.PopForm是在菜单编辑器中定义的弹出式菜单的名称C.参数X、Y指明鼠标的当前位置D.Button=2表示按下的是鼠标左键

  • 查看答案
  • 对窗体编写如下事件过程:Private Sub Form_MouseDown(B