首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Shift=6 And Button
编写如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Shift=6 And Button
admin
2010-03-30
18
问题
编写如下事件过程: 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、同时按下Ctrl、Alt键和鼠标右键
答案
8
解析
在鼠标的Mouse_Down事件中,当按下左键时,Button=1,右键时Button=2,在键盘上按下Shift键时, Shift值为1,Ctrl键时,Shift值为2,Alt时,Shift值为4,如果同时按下多键,则它们的值也相加。
转载请注明原文地址:https://jikaoti.com/ti/vOg0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
有如下代码片段,请填写完整相应的代码。publicclassJavaProgextendsjava.applet.Applet{publicvoidinit(){//将A
下面的代码实现一个简单的Applet:importjava.applet.Applet;importjava.awt.*;publicclassSampleextendsApplet{private
下面各项声明中合法的是()。Ⅰ:longl=4990;Ⅱ:inti=4L;Ⅲ:floatf=1.1;Ⅳ:doubled=4;
下面类中,有两个下拉列表,一个可以选择月份,一个可以选择2000--2009年之间的年份。importjavax.swing.*;publicclassExpirationextendsJFrame{JComb
下列叙述中正确的是
执行下面的程序段,输出结果为______。publicclassQ{publicstaticvoidmain(Stringargv[]){intanar[]=newint[5];System.out.println
使用如下( )保留字可以使只有在该类的包中的其他类才能访问该类。
对如下二叉树进行后序遍历的结果为( )。
随机试题
下列各项,不是胃溃疡并发症的是
IftheEuropeansthoughtadrought—alongperiodofdryweather—wassomethingthathappenedonlyinAfrica,theyknowbetternow
A.酌情停药B.完全消失C.无原发病D.终生E.半年到1年用药继发的巨幼红细胞贫血患者应
下列解表药中,兼有化湿功效的是
治疗心源性哮喘可选用
甲、乙、丙、丁拟设立一家商贸公司,就设立事宜分工负责,其中丙负责租赁公司运营所需仓库。因公司尚未成立,丙为方便签订合同,遂以自己名义与戊签订仓库租赁合同。关于该租金债务及其责任,下列哪些表述是正确的?
根据《中华人民共和国会计法》的规定,下列各项中,单位出纳人员不得兼任的工作有()。
根据下表,则下列说法正确的是()。Ⅰ.来自东亚的游客数量小于来自东欧、南美洲、北美洲、东南亚的游客数量和Ⅱ.游客中除了来自东亚与其他之外的外国游客数量,小于来自国内的游客数量
以下属于客户端脚本语言的是__________________。
Extraordinarycreativityhasbeencharacterizedasrevolutionary,flyinginthefaceofwhatisestablishedandproducingnotwh
最新回复
(
0
)