首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下窗体事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Shfit=6 And Bu
编写如下窗体事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Shfit=6 And Bu
admin
2021-09-06
16
问题
编写如下窗体事件过程:
Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
If Shfit=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://jikaoti.com/ti/ox90FFFM
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
结构化程序所要求的基本结构不包括
窗体中的选项卡控件中从一页移到另一页时,发生的事件是
已知在"用户表"中包含4个字段:用户名(文本,主关键字),密码(文本),登录次数(数字),最近登录时间(日期/时间)。在"登录界面"的窗体中有两个名为tUser和tPassword的文本框,一个登录按钮Command0。进入登录界面后,用户输入用
在VBA中,下列关于过程的描述中正确的是()。
在设计窗体时,要输入的数据总是取自固定内容的数据,可以使用的控件是
在一个Access的表中有字段“专业”,要查找包含“信息”两个字的记录,正确的条件表达式是()。
在一个数据库中已经设置了自动宏AutoExec,如果在打开数据库的时候不想执行这个自动宏,正确的操作是()。
在希尔排序法中,每经过一次数据交换后
随机试题
A.春泽汤B.沉香散C.二冬汤D.代抵当丸情志抑郁,小便不通,胁腹胀满,舌苔薄黄,脉弦。治疗宜用
下肢急性丹毒首选抗生素为
新生儿上唇裂开求治。检查见:左上唇部分裂开,未裂至鼻底。口内牙槽突及腭部未见异常,诊断
在铺贴连续多跨的屋面卷材时,应按照( )次序进行。
假设实际沪深300期指是2300点,理论指数是2150点,沪深300指数的乘数为300元/点,年利率为5%。若3个月后期货交割价为2500点,那么利用股指期货套利的交易者,从一份股指期货的套利中获得的净利润是()元。
1693年出版的《教育漫话》的作者是英国哲学家()。
思想实验是使用想象力去进行的实验,所做的都是在现实中无法做到的实验。根据上述定义,下列不属于思想实验的是:
古老的五刑是指()。
Inthisdenselypopulatedcity,acidrainis______;itisasignbothofindustrializationandpollution.
Trytoimaginewhatitisliketolivewithoutelectricity.Itisboring,【C1】______onething—notelevision,noMP3player,novi
最新回复
(
0
)