首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下窗体事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) It Shift=6 And Button=2
编写如下窗体事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) It Shift=6 And Button=2
admin
2021-06-03
14
问题
编写如下窗体事件过程:
Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
It Shift=6 And Button=2 Then
MsgBox’’Hello’’
End If
End Sub
程序运行后,为了在窗体上消息框中输出“Hello”信息,在窗体上应执行的操作是( )。
选项
A、同时按下Shift键和鼠标左键
B、同时按下Shift键和鼠标右键
C、同时按下Ctrl、Ah键和鼠标左键
D、同时按下Ctrl、Alt键和鼠标右键
答案
D
解析
在窗体的鼠标事件中,参数Button的值为1表示左键按下,值为2表示右键按下,值为4表示中间按键按下,参数Shift的值为l表示Shift键按下,值为2表示Ctrl键按下,值为4表示Alt键按下。Shift值为6则说明是Ctrl键和Ah键按下,Button值为2说明是鼠标右键按下。
转载请注明原文地址:https://jikaoti.com/ti/G7C0FFFM
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
软件设计中划分模块的准则是
有两个关系R和S如下:由关系R通过运算得到关系S,则所使用的运算为()。
在设计窗体时,字段“评价”只能输入“很好"、“好”、“一般”、“较差”和“很差”,可使用的控件是
软件生命周期是指()。
以下列出的是关于参照完整性的叙述①参照完整性是指在设定了表间关系后可随意更改用于建立关系的字段②参照完整性保证了数据在关系型数据库管理系统中的安全性与完整性③参照完整性在关系型数据库中对于维护正确的数据关联是必要的其中正确的是
要执行VisualBasic函数,应使用的宏操作命令是
现有表示患者和医疗的关系如下:P(P#,Pn,Pg,By),其中P#为患者编号,Pn为患者姓名,Pg为性别,By为出生日期,Tr(P#,D#,Date,Rt),其中D#为医生编号,Date为就诊日期,Rt为诊断结果。检索在1号医生处就诊的病人姓名的表达式是
软件测试的目的是
软件生命周期中,能准确地确定软件系统必须做什么和必须具备哪些功能的阶段是()。
函数Len(Tim(”ABC”&Space&”计算机”))返回的值为
随机试题
擂茶在宋代为()之称。
硅肺的基本病理变化是
根据宪法和法律,下列选项中享有选举权的人有()
下列属于烧结普通砖的是()。
根据《公司法》的规定,股份有限公司的董事会每年度至少召开两次会议,每次会议应于会议召开一定日期以前通知全体董事。该日期为()。
下列关于舞弊的风险评估程序的说法中,正确的是()。
潘婷(PANTENE)润发精华素系列平面稿口号:爱上你的秀发(Loveyourhair)标题:一见钟情正文:只要你试一次,这种滋润的感觉,你期待已久。虽然是第一次,发质会有意想不到的改善。全新潘婷润发精华素,每次洗发后使用
13581
Jackson方法是一种面向【】的结构化方法。
Afewcommonmisconceptions.Beautyisonlyskin-deep.One’sphysicalassetsandliabilitiesdon’tcountallthatmuchinamana
最新回复
(
0
)