首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设有如下事件过程: 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
2018-07-11
31
问题
设有如下事件过程:
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/Y7Gp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在窗体上画一个命令按钮,然后编写如下事件过程:a$=InputBox(”请输入一个二进制数”)n=Len(a$)Dec=Dec*2+____(a$,i,1)程序功能为:单击命令按钮,将产生一个输入对话框,此时如果在对话框中输入一个三进制数,
编写如下程序:PrivateSubCommand1_Click()DimnAsInteger:StaticsAsIntegerForn=1To3s=s+nNextPrintsEndSub程序运行后
设有以下定义语句:PrivateTypepointxAsIntegeryAsIntegerEndTVpeDimaAspoint下面语句中正确的是
在窗体上画一个文本框,名称为Text1,然后编写如下程序:PrivateSubFormLoad()PrivateSubFormClick()Text1.Text="":Text1.SetFocusDi
窗体上有名称分别为Text1、Text2的文本框,名称为Commandl的命令按钮。运行程序,在Text1中输入“Form1ist”,然后单击命令按钮,执行如下程序:PrivateSubCommand1Click()Text2.Text=
设有如下通用过程:PublicFunctionFun(xStrAsString)AsStringDimtStrAsString,strLAsIntegertStr=""strL=Len(xStr)i=lDoWhil
设在一个工程的窗体中有如下代码:PublicxAsIntegerPrivateSubForm_Load()DimyAsIntegerEndSub在该工程的标准模块的声明部分有代码:PublicaAsInteger
随机试题
如何强化评估主体及客体在教育评估活动中的积极心理反映,抑制或转化其消极的心理反映?
男性、25岁。突发右下腹绞痛,并放射至腰部及阴囊,右大腿内侧,肉眼血尿,B超示右侧输尿管下段结石,相差尿红细胞检查应是女性、25岁。咳嗽、盗汗、午后低热,呼吸科诊断:肺结核,服用利福平0.45gQD,尿色应是
面色萎黄,口唇色淡,头晕目眩,心悸失眠,手足麻木,妇女则见经少色淡或闭经,舌淡,脉细无力的证候是
为保证预算定额的质量,充分发挥预算定额的作用,实际使用简便,在编制工作中应遵循()的原则。
()是指将缺乏流动性的资产转换为在金融市场上可以自由买卖的证券的行为,使其具有流动性。
已知甲公司的经营杠杆系数为3,财务杠杆系数为2;乙公司的经营杠杆系数为2,财务杠杆系数为3。假设两家公司业务量的变动幅度相同,则下列表述中正确的是()。
[*]
在类的定义中,用于为对象分配内存空间,对类的数据成员进行初始化并执行其他内部管理操作的函数是()。
Thedifferencebetweenaliquidandagasisobvious【46】______theconditionsoftemperatureandpressurecommonlyfoundatthes
AstheU.S.findsitselfincreasinglyintertwinedwithitsglobalpartners,keepingaliveitscommitmenttofreetradewillprov
最新回复
(
0
)