首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设有如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=2Then PopupMenu popMe
设有如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=2Then PopupMenu popMe
admin
2018-09-19
31
问题
设有如下事件过程:
Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
If Button=2Then
PopupMenu popMenu
End If
End Sub
则以下描述中错误的是( )。
选项
A、该过程的功能是弹出一个菜单
B、popMenu是在菜单编辑器中定义的弹出式菜单的名称
C、参数X、Y指明鼠标的当前位置
D、Button=2表示按下的是鼠标左键
答案
D
解析
本题考查鼠标事件和弹山菜单。鼠标状态事件有按下(MouseDown)、移动(MouseMove)和弹起(MouseUp),这几种事件能够通过参数区分出鼠标的左键、右键和中间键,鼠标键的对应值及其说明为:1-用户按下左键触发了鼠标事件;2-用户按下右键触发了鼠标事件;4-用户按下中间键触发了鼠标事件。PopupMenu为弹出菜单方法,popMenu为菜单名。题目中程序的功能是当鼠标按下右键时弹出菜单popMenu。
转载请注明原文地址:https://kaotiyun.com/show/QEFp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
设窗体上有1个名称为HScrol11的水平滚动条,其Max、Min属性分别设置为100、1:有2个名称分别为Option1、Option2的单选按钮,其标题分别为“30”、“50”;还有下面程序代码:PrivateSubOption1_Clic
以下关于图片框控件的说法中,错误的是
下列关于标签的描述中,错误的是
在窗体上画1个命令按钮,并编写如下事件过程:PrivateSubCommand1Click()Dima(3,3)Form=1To3Forn=1To3Ifn=mOrn=4-mThena(m,n)=m+n
下列叙述中,不属于设计准则的是()。
要计算x的平方根并放入变量y,正确的语句是( )。
如果把文本框的Enabled属性设置为False并运行程序,则以下叙述中正确的是
在设计阶段,属性窗口的内容是
(1)在名称为Form1的窗体上添加一个水平滚动条,其名称为HScroll1,然后在属性窗口中设置窗体和滚动条的属性,实现如下功能:①窗体标题为“设置滚动条属性”。②滚动条所能表示的最大值和最小值分别为200和0。③程序运行后
如果把程序的启动对象设置为:SubMain,则SubMain过程
随机试题
有关神经纤维瘤的叙述,哪项不正确
下列哪项不是微波干燥养护法的优点
鼓励长期卧床的心力衰竭患者在床上做下肢活动,其目的主要是()。
招标采购项目风险识别中,因信息不对称产生的风险是()
(2009年)气体在某一过程中放出热量100kJ,对外界做功50kJ,其内能变化量是()kJ。
测绘成果是指通过测绘形成的数据、信息、图件以及相关的技术资料,是各类测绘活动形成的记录和描述自然地理要素或者地表人工设施的()及其属性的地理信息、数据、资料、图件和档案。
【背景资料】某山区公路工程,业主在招标时给出了工程量清单,要求采用工程量清单报价的方法进行报价,给出的工程细目共七部分。投标时,承包商在核算工程数量时发现桩基的设计数量比清单数量少,承包商为了降低报价,就对工程量清单进行了更改,按更改后的数量进行报价;在
在进行库存现金和存货清查时,出纳人员和实物保管人员不得在场。()
根据车辆购置税的有关规定,已经缴纳车辆购置税的车辆,有下列()情形的,纳税人应到车购办申请退税。
下列关于Windows2003中域的描述,正确的是__________。(2009年上半年试题)
最新回复
(
0
)