网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

在对象的MouseDown和MouseUp事件过程中,参数Button的值为1、2、4时,分别代表按下鼠标的左键、 [5] 和 [6] 按钮。


参考答案

更多 “ 在对象的MouseDown和MouseUp事件过程中,参数Button的值为1、2、4时,分别代表按下鼠标的左键、 [5] 和 [6] 按钮。 ” 相关考题
考题 在以下事件过程中,可以在用户按下鼠标右键时,显示一个上边框,以鼠标当前位置为中心的弹出式菜单,而且这个弹出式菜单还可以识别右键对菜单命令的选择,相应的选项是( )。A.Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _X As Single, Y As Single)If Button=2 ThenPopupMenu mnuEdit, vbPopupMenuCenterAlign Or _vbPopupMenuRightButton, X, Y, mnuEditOpenEnd IfEnd SubB.Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _X As Single, Y As Single)If Button=2 ThenPopupMenu mnuEdit,End IfEnd SubC.Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _X As Single, Y As Single)PopupMenu mnuEdit, vbPopupMenuCenterAlign Or _vbPopupMenuRightButtonEnd SubD.Private Sub Form_MouseUp(Button As Integer , _Shift As Integer, X As Single, Y As Single)If Button=2 ThenPopupMenu mnuEdit, 2End IfEnd Sub

考题 编写如下事件过程:Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _X As Single, Y As Single)If Shift=6 And Button=2 ThenPrint "PC"End IfEnd Sub程序运行后,为了在窗体上输出"PC",应执行的操作为( )。A.同时按下Shift键和鼠标左键B.同时按下Ctrl,Alt键和鼠标右键C.同时按下Shift键和鼠标右键D.同时按下Ctrl,Alt键和鼠标左键

考题 要使得在按下鼠标右键时,激发mousedown事件,可以设置此事件中的button参数为()A.0B.1C.2D.4

考题 要使得在按下鼠标左键时,激发mousedown事件,可以设置此事件中的button参数为()A.0B.1C.2D.4

考题 以下说法中正确的是A.MouseUp事件是鼠标向上移动时触发的事件B.MouseUp事件过程中的x,y参数用于修改鼠标位置C.在MouseUp事件过程中可以判断用户是否使用了组合键D.在MouseUp事件过程中不能判断鼠标的位置

考题 假定已经在菜单编辑器中建立了窗体的弹出式菜单,其顶级菜单项的名称为a1,其“可见”属性为False。程序运行后,单击鼠标左键或右键都能弹出菜单的事件过程是A.Private Sub Form_MouseDown(Button As Integer,_ Shift As Integer,X As Single,Y As Single) If Button=1 And Button=2 Then PopupMenu a1 End If End SubB.Private Sub Form_MouseDown(Button As Integer,_ Shift As Integer,X As Single,Y As Single) PopupMenu a1 End SubC.Private Sub Form_MousoDown(Button As Integer,_ Shift As Integer,X As Single,Y As Single) If Button=1 Then PopupMenu a1 End If End SubD.Private Sub Form_MouseDown(Button As Integer,_ Shift As Integer,X As Single,Y As Single) If Buaon=2 Then PopupMenu a1 End If End Sub

考题 (6)在鼠标事件过程MouseDown和MouseUp中,参数Button的值为1、2、4时,分别代表按下鼠标的按钮。

考题 鼠标一次单击过程,依次触发了()事件。 A、Mouseup、Mousedown、ClickB、Mousedown、Click、MouseupC、Click、Mousedown、MouseupD、Mousedownk、Mouseup、Click

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

考题 假定有如下事件过程: 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表示按下的是鼠标左键

考题 窗体的MouseDown事件过程Form_MouseDown(Button As Integer,Shift As Integer, XAsSingle,Y As Single)有4千参数,关于这些参数,正确的描述是 ______。A.通过Button参数判定当前按下的是哪一个鼠标键B.Shift参数只能用来确定是否按下Shift键C.Shift参数只能用来确定是否按下Alt和Ctrl键D.参数X,Y用来设置鼠标当前位置的坐标

考题 窗体的 MouseDown 事件过程 Form_MouseDown(ButtonAsInteger,ShiftAsInteger, XAsSingle,YAsSingle)有4今参数,关于这些参数,正确的描述是_________。A.通过Button参数判定当前按下的是哪一个鼠标键B.Shift参数只能用来确定是否按下Shift键C.Shift参数只能用来确定是否按下Alt和Ctrl键D.参数X,Y用来设置鼠标当前位置的坐标

考题 编写如下事件过程: 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.同时按下Ctrl、Alt键和鼠标右键

考题 在对象的MouseDown和MouseUp事件过程中,当Button参数的值为1、2、4时,分别代表按下鼠标 ______。A.左键、中间键和右键B.左键、右键和中间键C.中间键、左键和右键D.左键、右键和同时按下左右键

考题 设已经在菜单编辑器中设计了窗体的快捷菜单,某顶级菜单为a1,且取消其“可见”属性。运行时,哪个事件过程可以使快捷菜单的菜单项响应鼠标左键单击和右健单击的事件过程是A.Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=2 Then PopupMenu a1,2 End SubB.Private Sub Form_MouseDown(ButtonAsInteger,ShiftAsInteger,X As Single,Y As Single) PopupMenu a1,0 End SubC.Private Sub Form_Mouse Down(Button As Integer,Shift As Integer,X As Single,Y As Single) PopupMenu a1 End SubD.Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If(Button=vbLetfButton) Or (Button=vbRightButton) Then PopupMenu a1 End Sub

考题 假定有如下事件过程: Private Sub Form_MouseDown(Buaon 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表示按下的是鼠标左键

考题 窗体的MouseDown事件过程如下: Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) 有4个参数,关于这些参数,正确的描述是 ______。A.通过Button参数判定当前按下的是哪一个鼠标键B.Shift参数只能用来确定是否按下Shift键C.Shift参数只能用来确定是否按下Alt和Ctrl键D.参数x和y用来设置鼠标当前位置的坐标

考题 鼠标光标的形状通过 ______来设置。A.MouseMove事件B.MouseUp事件C.MouseDown事件D.MousePoint属性

考题 在对象的MouseDown和MouseUp事件过程中,当Button参数的值为1、2、4时,分别代表按下鼠标的 ______。A.左键、中间键和右键B.左键、右键和中间键C.左键、右键和同时按下左右键D.中间键、左键和右键

考题 假定已经在菜单编辑器中建立了窗体的弹出式菜单,其顶级菜单的名称为a1,其“可见”属性为False,则程序运行后,可以同时响应鼠标左键单击和右键单击的事件过程是 ______。A.Private Sub Form_ MouseDown (Button As Integer, _ Shift As Integer, X As Single, Y As SinglE)If Button = 1 And Button = 2 Then PopupMenu al End If End SubB.Private Sub Form_ MouseDown (Button As Integer, _ Shift As Integer, X As Single, Y As SinglE)PopupMenu a1 End SubC.Private Sub Form_ MouseDown (Button As Integer, _ Shift As Integer, X As Single, Y As SinglE)If Button = 1 Then PopupMenu a 1 End If End SubD.Private Sub Form_ MouseDown(Button As Integer, _ Shift As Integer, X As Single, Y As SinglE)If Button = 2 Then PopupMenu a 1 End If End Sub

考题 假定已经在菜单编辑器中建立了窗体的弹出式菜单,其顶级菜单的名称为al,其“可见”属性为False。程序运行后,单击鼠标左键或右键都能弹出菜单的事件过程是( )。A.Private Sub Form_MouseDown(Button As Integer,_Shift As Integer,X As Single, Y As Single) If Button=1 And Blltton=2Then PopupMenu a1 End If End SubB.Private Stlb Form_MouseDown(Button As Integer,_Shift As Integer,X As Single, Y As Single) PopupMenu a1 End SubC.Private Sub Form—MouseDown(Button As Integer,_Shift As Integer,X As Single, Y As Single) If Button=1 Then PopupMenu a1 End If End SubD.Private Sub Form. MouseDown(Button As Integer,_Shift As Integer,X As Single, Y As Single) If Buttcn=2 Then PopupMenu a1 End If End Sub

考题 假定编写了如下事件过程: 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.按什么键都不显示

考题 下面关于鼠标事件描述不正确的是()A、利用鼠标事件可以跟踪鼠标的操作,判断按下的是哪一个鼠标键B、Click、DbClick、MouseMove、MouseUp和MouseDown都是鼠标事件C、MouseMove是鼠标在对象内滚动时触发的D、鼠标必须一个对象的边界范围内时,另一个对象也可以接收MouseMove事件

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

考题 单选题窗体的MouseUp事件过程如下:Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single,Y As Single)……End Sub关于以上定义,以下叙述中错误的是(   )。A 根据Shift参数,能够确定使用转换键的情况B 根据X、Y参数可以确定触发此事件时鼠标的位置C Button参数的值是在MouseUp事件发生时,系统自动产生的D MouseUp是鼠标向上移动时触发的事件

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

考题 单选题对窗体编写如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single Y As Single) If Button=2 ThenPrint"AAAAA"End IfEnd SubPrivate Sub Form_MouseUp(Button As Integer,Shift As Integer,X As Single,Y As Single) Print"BBBBB" End Sub程序运行后,如果单击鼠标右键,则输出结果为()A AAAAAB BBBBBC AAAAA CR BBBBB(其中CR表示回车和换行)D BBBBB CR AAAAA