首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下窗体事件过程: Private Sub Form_MouseDown(Button As Integer ,Shift As Integer,X As Single,Y As Single) If Shift=6 And Butto
编写如下窗体事件过程: Private Sub Form_MouseDown(Button As Integer ,Shift As Integer,X As Single,Y As Single) If Shift=6 And Butto
admin
2020-06-25
30
问题
编写如下窗体事件过程:
Private Sub Form_MouseDown(Button As Integer ,Shift As Integer,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/22cp777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计了表对象“tEmp”和窗体对象“fEmp”。同时,给出窗体对象“fEmp”上“计算”按钮(名为bt)的单击事件代码,试按以下要求完成设计。按照以下窗体功能,补充事件代码设计。
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计了表对象“tEmp”、窗体对象“fEmp”、报表对象“rEmp”和宏对象“mEmp”。同时,给出窗体对象“fEmp”的若干事件代码,试按以下功能要求补充设计。调整报表对象“rEmp”
将已有的“水费.xls”文件导入到samp1.accdb数据库中,将导入的表命名为“水费记录”。“水费记录”表结构见下表。
执行下列程序段后,变量intsum的值是DimintsumAsIntegerDimIAsIntegerintsum=0ForI=0T050Step10intsum=intsum+I
每张报表可以有不同的节,一张报表至少要包含的节是
在报表中,不能实现的功能是
用Access数据库管理技术处理的数据不仅能存储为数据库文件,还可以以多种文件格式导出数据,但不支持导出的文件格式是
在考生文件夹下有一个数据库文件“samp1.accdb”。在数据库文件中已经建立了一个表对象“学生基本情况”。根据以下操作要求,完成各种操作。将新增“电话”字段的输入掩码设置为“010-********”的形式。其中,“010-”部分自动输出,后八位为
如果想在已建立的“tSalary”表的数据表视图中直接显示出姓“李”的记录,应使用Access提供的
某二叉树的前序遍历序列与中序遍历序列相同,均为ABCDEF,则按层次输出(同一层从左到右)的序列为
随机试题
用光学平直仪检查导轨水平面内的直线度误差时,只要将目镜按照顺时针方向旋转900,使微动手轮与望远镜垂直即可测和。()
毛泽东提出,坚持武装斗争必须建立一支人民的军队,这支军队的唯一宗旨是()
下列哪些属继发性脑损伤
A.急性肝炎B.急性胆管炎C.胆总管癌D.肝硬化门脉高压E.胆道蛔虫病黄疸伴右上腹部阵发性绞痛
下列选项中,()是使合同终止,消灭合同关系的最主要和最正常的原因和形式。
根据《中华人民共和国行政处罚法》,行政拘留只能由()决定和执行。
微型计算机的内存储器由()组成。
小刘在超市买了一瓶香油付了25元。在这里,人民币履行的职能是()。
Whomostlikelyistalking?
AttheheightoftheDutchgoldenage,merchantsexportedtheirgoodsandtheirfamiliestocoloniesonfourcontinents.Fource
最新回复
(
0
)