首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下窗体事件过程: 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
2019-09-19
32
问题
编写如下窗体事件过程:
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/1E6D777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
党的十六大以来,以胡锦涛为总书记的党中央明确提出、系统阐述了构建社会主义和谐社会的战略思想,强调要形成全体人民各尽其能、各得其所而又和谐相处的社会。请回答:构建和谐社会与全面建设小康社会的关系是什么?
“社会和谐是中国特色社会主义的本质属性,是国家富强、民族振兴、人民幸福的重要保证”这一判断
毛泽东指出:“帝国主义和中国的封建主义相结合,把中国变为半殖民地和殖民地的过程,也就是中国人反抗帝国主义及其走狗的过程。”试述近代中国进行的反侵略战争具有的意义及历次反侵略战争失败的根本原因和教训。
自第一个社会主义国家建立以来,社会主义事业的发展并不是一帆风顺的,社会主义发展道路的多样性以及发展过程中的前进性和曲折性的实践告诉我们()
若f(0,0)=0,当(x,y)≠(0,0)时,f(x,y)为如下四式之一,则f(x,y)在点(0,0)处连续的是().
设某数据库服务器中有3块146G的SAS硬盘,为了保证数据的安全性,数据库管理员利用硬件RAID卡将三块硬盘做成RAID5,则服务器可使用磁盘空间为【9】GB。
在数据文件的【1】属性集上建立的索引称作主索引。
某采购中心采购了一套商品批发查询管理系统,此系统采用SQLServer2008数据库管理系统,该系统需要经常处理百万级以上的数据查询。同时该系统提供了第三方人员开发的SQL接口,第三方人员可以根据自己的需要开发自己的应用程序来访问数据库中的相关数据。
下列有关数组的叙述中,错误的是()。
通常我们使用()方法来为一个部件注册事件监听器。
随机试题
乳腺癌的前哨淋巴结活检适合于
信号识别颗粒(signalrecognitionparticle)
无晶状体眼青光眼的机制包括()
吸入性损伤的治疗下列哪项最关键
在管理行为控制程序中,制定对策纠正偏差之前需要进行的工作有()。
Railtransportplaysmoreorlessthesameroleas______inthedomesticeconomyofacountry.
老刘计划20年后退休,并且预计退休后能够生存25年,退休后每年生活费需要100000元。老刘拿出100000元作为退休基金的启动资金,并计划每年年末投入一笔固定的资金进行退休基金的积累。老刘在退休前采取较为积极的投资策略,假定年回报率为9%,退休后采取较为
下列古代典籍著作与其所属领域对应有误的是()。
Readtheinformationaboutcommercialbanks.Choosethecorrectwordtofilleachgap,fromA,BorCForeachquestion(29-40),
A、Havetherightattitude.B、Enjoylife.C、Beoptimisticaboutthefuture.D、Workhard.C
最新回复
(
0
)