首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设有如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=2 Then PopupMenu popM
设有如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=2 Then PopupMenu popM
admin
2019-03-14
21
问题
设有如下事件过程:
Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
If Button=2 Then
PopupMenu popMenu
EndIf
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/FKFp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
窗体上有两个水平滚动条HV、HT,还有一个文本框Text1和一个标题为"计算"的命令按钮Command1,并编写了以下程序:PrivateSubCommand1_Click()Callcalc(HV.Value,HT.Value)EndSu
有三个关系R、S和T如下:由关系R和S通过运算得到关系T,则所使用的运算为( )。
窗体上有三个水平滚动条,名称分别为HSRed、HSGreen和HSBlue,取值范围均是0~255,代表颜色的三种基色。改变滚动框的位置,可以改变三种基色的值,从而改变窗体的背景色,如下图所示。程序代码如下:Dimcolor(3)AsIntege
在软件设计中不使用的工具是( )。
有如下过程代码:Subvar_dim() StaticnumaAsInteger DimnumbAsInteger numa=numa+2 numb=numb+1 printnuma;numbEndSub连续3次
某人为计算n!(0<n<=12)编写了下面的函数过程:PrivateFunctionfun(nAsInteger)AsLongDimPAsLongP=1Fork=n一1To2Step一1P=P*kNextkfun=P
软件生命周期可分为定义阶段,开发阶段和维护阶段。详细设计属于
下面不属于软件工程过程的4种基本活动
设有关键码序列(Q,G,M,Z,A,N,B,P,X,H,Y,S,T,L,K,E),采用堆排序法进行排序,经过初始建堆后关键码值B在序列中的序号是()。
待排序的关键码序列为(15,20,9,30,67,65,45,90),要按关键码值递增的顺序排序,采取简单选择排序法,第一趟排序后关键码15被放到第()个位置。
随机试题
Doyoufindgettingupinthemorningsodifficultthatit’spainful?Thismightbecalledlaziness,butDr.Kleitmanhasanew
观察发绀的最佳部位是
胸片示右肺上叶不张与肺门肿块阴影相连,其下缘呈S状,这种典型的X线征象以下疾病可能性最大的是
下丘脑与腺垂体的功能联系是
最可能的诊断是应选择的最佳治疗药物是
蛋白质肽链的α-螺旋每上升一圈相当于多少个氨基酸残基
A、 B、 C、 D、 A每行前两个图形叠加得到第三个图形,叠加规律为:黑+黑=白,空+黑/白=黑/白,白+白=黑,黑+白=空,综上选A。
职业社会化是指个体按社会需求选择职业,掌握从事某种职业的知识和技能,以及从事某种职业后进行知识、技能更新再训练的过程。根据上述定义,下列属于职业社会化的是()。
Lookatthetenstatementsforthispart.Youwillhearapassageabout"harmsdonebytoomuchwebsurfing".Youwillliste
【S1】【S4】
最新回复
(
0
)