首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下窗体事件过程: Private Sub Form_MouseDown(Button As Integer ,Shift As Integer,X As Single,Y As Single) If Shift=6 And Button=2 Th
编写如下窗体事件过程: Private Sub Form_MouseDown(Button As Integer ,Shift As Integer,X As Single,Y As Single) If Shift=6 And Button=2 Th
admin
2021-07-08
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/fLvp777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
定义学生选修课程的关系模式如下:S(S#,Sn,Sd,Sa)(其属性分别为学号、姓名、所在系、年龄);C(C#,Cn,P#)(其属性分别为课程号、课程名、先选课);SC(S#,C#,G)(其属性分别学号、课号和成绩)。
要查找职务不是“经理”和“主管”的员工,错误的条件表达是()。
在Access2010中,窗体最多可包含有()。
对软件系统总体结构图,下面描述中错误的是()。
用树型结构表示实体之间联系的模型是()。
代码编写阶段可进行的软件测试是
子过程Plus完成对当前库中"学生表"的年龄字段都加1的操作。SubPlus()DimcnAsNewADODB.ConnectionDimrsAsNewADODB.Recordset
可以判定某个日期表达式能否转换为日期或时间的函数是
下面不能作为结构化方法软件需求分析工具的是
有两个关系R和S如下图所示:由关系R通过运算得到关系S,则所使用的运算为
随机试题
性格指个体在生活过程中形成的对现实的稳定的态度以及与之相适应的习惯化的行为方式。性格是人与人区别的主要方面,是人格的核心。
光镜下区分癌和肉瘤的主要依据是
既能凉血止血,又能散瘀解毒消痈的药物是
根据《票据法》的规定,保证人必须在汇票或者粘单上记载的事项包括()。
发行可转换公司债券的上市公司最近3年以现金或股票方式累计分配的利润应不少于最近3年实现的年均可分配利润的()。
(吉林2012甲一4)()
企业管理信息系统的开发应该具备一定的条件,其中最关键的是()。
网络管理员使用DHCP服务器对公司内部主机的IP地址进行管理。在DHCP客户机上执行“ipconfig/all”得到的部分信息如图(a)所示,该客户机在进行地址续约时捕获的其中1条报文及相关分析如图(b)所示。请分析图中的信息,补充图(b)中空白处的内容。
71岁的白尔斯先生来中国5年了。他是一位快乐的老人,公司的年轻人都叫他“老白”。白尔斯先生对这个称呼很满意,他知道“老白”就像美国人之间的昵称一样,表现出中国人没有把他这个“老外”当外人。
A、Itpublishesbooksonlyforchildren.B、Itpublishesbooksaboutpeople’spets.C、Itletstheyoungreadersmakeupstoriesby
最新回复
(
0
)