首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下窗体事件过程: Private Sub Form_MouseDown( Button As Integer ,Shift As Int.eger,X As Single,Y As Single) If Shift =6 And
编写如下窗体事件过程: Private Sub Form_MouseDown( Button As Integer ,Shift As Int.eger,X As Single,Y As Single) If Shift =6 And
admin
2020-06-25
20
问题
编写如下窗体事件过程:
Private Sub Form_MouseDown( Button As Integer ,Shift As Int.eger,X As Single,Y As Single)
If Shift =6 And Button =2 Then
MsgBox " Hello"
End If
End Sub
程序运行后,为了在窗体上消息框中输出“Hello”信息,在窗体上应执行的操作是( )。
选项
A、同时按下Shift键和鼠标左键
B、同时按下Shift键和鼠标右键
C、同时按下Ctrl、Alt键和鼠标左键
D、同时按下Ctrl、Alt键和鼠标右键
答案
D
解析
在窗体的鼠标事件中,参数Button的值为1表示左键按下,值为2表示右键按下,值为4表示中间按键按下,参数Shift的值为1表示Shift键按下,值为2表示Ctrl键按下,值为4表示Alt键按下。Shift值为6则说明是Ctrl键和Alt键按下,Button值为2说明是鼠标右键按下。
转载请注明原文地址:https://kaotiyun.com/show/K1cp777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计了表对象“tEmp”、窗体对象“fEmp”、报表对象“rEmp”和宏对象“mEmp”。请在此基础上按照以下要求补充设计:设置报表“rEmp”按照“聘用时间”字段升序排列输出;将报表页
在考生文件夹下,存在一个数据库文件“samp1.accdb”和一个图像文件“photo.bmp”。在数据库文件中已经建立了一个表对象“tStud”。试按以下操作要求,完成各种操作:将“tStud”表中的数据导出到文本文件中,并以“tStud.txt”文
在考生文件夹下,存在一个数据库文件“samp1.accdb”和一个图像文件“photo.bmp”。在数据库文件中已经建立了一个表对象“tStud”。试按以下操作要求,完成各种操作:将冻结的“姓名”字段解冻;并确保“姓名”字段列显示在“学号”字段列的后面
VBA中将lnputBox的返回值转换为数值应该使用的函数是
执行下列程序段后,变量intsum的值是DimintsumAsIntegerDimIAsIntegerintsum=0ForI=20.2To5Step-4.7intsum=intsum+
可以用数据表视图显示记录。如果要求将某字段的显示位置固定在窗口左侧,则可以进行的操作是
在“成本表”中有字段:装修费、人工费、水电费和总成本。其中,总成本=装修费+人工费+水电费,在建表时应将字段“总成本”的数据类型定义为
若变量x是小于100的非负数,正确的VBA表达式是
在考生文件夹下的“samp1.accdb”数据库文件中已建立表对象“tVisitor”,同时在考生文件夹下还有“exam.accdb”数据库文件。请按以下操作要求,完成表对象“tVisitor”的编辑和表对象“t.Line”的导入。(1)设置“游
在超市营业过程中,每个时段要安排一个班组上岗值班,每个收款口要配备两名收款员配合工作,共同使用一套收款设备为顾客服务。在数据库中,实体之间属于一对一关系的是
随机试题
在《社会组织与经济组织理论》一书中,他最早提出一套比较完整的行政组织体系理论,因此被称为“组织理论之父”。他就是法国古典管理理论的代表——韦伯。()
Itiswidelybelievedthathighlyeducatedstudentsaremorelikelytogetagoodjob.However,atanon-campusjob【C1】______in
中耳炎的发病部位是
一座66/10kV的重要变电站,装有容量为16000kV.A的主变压器两台,采用蓄电池直流操作系统,所有断路器配电磁操作机构。控制、信号等经常性负荷为2000W,事故照明负荷为1500kW,最大一台断路器合闸电流为98A,根据设计规程,请回答下列问题。
建设工程合同纠纷的处理方式主要有()。
在中国,股权众筹属于一种风险投资补充。()
货币供给过程中()的作用最重要。
金融机构对外担保余额、境内外汇担保余额及外汇外债余额之和不得超过其自有资金的20倍。()
Thereisamarkeddifferencebetweentheeducationwhicheveryonegetsfromlivingwithothersandthedeliberateeducatingof
Britainisfacinga【C1】______riseinitsratpopulation【C2】______growingnumbersofpeopleleavefastfoodscrapsinthestreet,
最新回复
(
0
)