首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
己知在菜单编辑器中设计了窗体的快捷菜单,其主菜单为a1,且取消其“可见”属性,如图2所示。运行时,以下( )事件过程可以使快捷菜单的菜单项响应鼠标右键单击。
己知在菜单编辑器中设计了窗体的快捷菜单,其主菜单为a1,且取消其“可见”属性,如图2所示。运行时,以下( )事件过程可以使快捷菜单的菜单项响应鼠标右键单击。
admin
2018-07-11
28
问题
己知在菜单编辑器中设计了窗体的快捷菜单,其主菜单为a1,且取消其“可见”属性,如图2所示。运行时,以下( )事件过程可以使快捷菜单的菜单项响应鼠标右键单击。
选项
A、Private Sub Form MouseDown(Button As Integer,
ShiftAs Integer,XAs Single,YAs Single)
IfButton=2 Then PopupMenu a1.2
End Sub
B、Private Sub Form MouseDown(ButtonAs Integer,
ShiftAs Integer,X As Single,YAs Single)
PopupMcnu al,0
End Sub
C、Private Sub Form MouseDown(Button As Integer,
Shift As Integer,X As Single,YAs Single)
PopupMenu al
End Sub
D、Private Sub Form_MouseDown(Button As Integer,ShiftAs
Integer,X As Single,YAs Single)
If(BuRon=vbt,etfButton)Or(Button=vbRightButton)ThenPopupMenu a1
End Sub
答案
A
解析
本题考查弹出菜单的显示。PopupMenu为弹出菜单方法,其中,标志表示弹出的位置和触发的键,取值为0表示弹出菜单的左端在x处且识别左键单击,取值为04表示位于x的中心,取值为08表示在x的右边,一般判断是否单击右键,可通过判断Button是否为2来实现。
转载请注明原文地址:https://kaotiyun.com/show/mzFp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
为把圆周率的近似值3.14159存放在变量pi中,应该把变量pi定义为
在标准模块中,将a定义为全局整型变量的语句是
若看到程序中有以下事件过程,则可以肯定的是,当程序运行时PrivateSubClickMouseDown(ButtonAsInteger,ShiftAsInteger,XAsSingle,YAsSingle)Print_VBPr
窗体上有一个名称为Command1的命令按钮,有程序如下:OptionBase1PrivateSubCommand1Click()Dima(10)AsInteger‘第1个ForFori=1To10a(i)=In
以下数组定义语句中,错误的是
在设计阶段,为了设置某控件的Left属性,可使用的方法是
运动会中一个运动项目可以有多名运动员参加,一个运动员可以参加多个项目。则实体项目和运动员之间的联系是
在E-R图中,用来表示实体联系的图形是( )。
A、数据流图(DFD图)B、投影C、自然连接D、并A由关系R到关系S为一元运算,排除C和D。关系S是关系R的一部分,是通过选择之后的结果,因此选A。
设循环队列的存储空间为Q(1:35),初始状态为front=rear=35。现经过一系列入队与退队运算后,front=15,rear=15,则循环队列中的元素个数为
随机试题
雨天安全行车的注意事项是什么?
呼吸道具有
中国目前房地产代理活动的主要形式为()。
施工方案经济分析的常用方法是什么?设备负荷试运转应怎样来组织?
当无圈梁和梁垫时,板、次梁与主梁交叉处,其上层钢筋的绑扎位置正确的是()。
在运用控制小组进程技巧时,工作者要针对组员的语言行为及背后的思想适当给出解释,这样做的目的是()。
阅读《济南的冬天》的教学实录片段,回答问题。(总结部分)师:现在我们已经领略了济南这个城市冬天的美妙了,最后让我们一起来总结一下这篇文章每一段的主旨。谁能告诉我,第一段主要写了什么?生:写了济南作为一个北方城市却能拥有一个温暖
我国古代“皇帝”作为国家元首的正式称号,始于()。
公安工作是政策性和法律性相结合的一项工作。()
Thelasthalfofthenineteenthcentury_____thesteadyimprovementinthemeansoftravel.
最新回复
(
0
)