首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下事件过程: Private Sub Form_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single) If(Button And 3)=3 Th
编写如下事件过程: Private Sub Form_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single) If(Button And 3)=3 Th
admin
2020-02-27
16
问题
编写如下事件过程:
Private Sub Form_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
If(Button And 3)=3 Then
Print”AAAA”
End If
End Sub
程序运行后,为了在窗体上输出“AAAA”,应按下的鼠标键为( )。
选项
A、按左键并移动
B、按右键并移动
C、同时按下左、右键并移动
D、按什么键都不显示
答案
D
解析
鼠标单击时,鼠标键按下的参数Button可取3个值:按下左键时,Button值为1、按下右键时,Button值为2、按下中间键时,Button值为4。因此始终不能执行语句“Print”AAAA””,也就不能输出“AAAA”。
转载请注明原文地址:https://jikaoti.com/ti/DWx0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
以下关于过程的叙述中,错误的是()。
程序运行时,拖动滚动条上的滚动框,则所触发的事件是()。
为了使标签Label1透明且不具有边框,以下正确的属性设置是()。
在窗体上建立三个菜单(名称分别为Read、Calc和Sawe.标题分别为“读入数据”、“计算并输出”和“存盘”),然后再添加一个文本框,名称为Text1,MultiLine属性设置为True,ScrollBars属性设置为2(如网所示)。程序运行后,如果执
设某二叉树的后序序列为CBA,中序序列为ABC,则该二叉树的前序序列为
假定在某个事件过程中需要计算:y=3!+5!的值,下面最好的设计是
下面是求最大公约数的函数的首部:Functiongcd(ByValxAsInteger,ByValyAsInteger)AsInteger若要输出8、12、16这3个数的最大公约数,下面正确的语句是()。
(1)在考生文件夹下有一个工程文件sjt3.vbp(相应的窗体文件名为sjt3.frm),在窗体上添加一个名称为Listl的列表框和一个名称为Textl的文本框,如图1所示。编写窗体的MouseDown事件过程。程序运行后,如果用鼠标单击窗体,则从键盘上输
设a=2,b=3,c=4,d=5,下列表达式的值是()。3>2*bOra=cAndb<>cOrb<>a+c
满足下列条件之一的年份是闰年:1)年份能被4整除但不能被100整除2)年份能被400整除若y代表年份,下面判断闰年的正确表达式是()。
随机试题
在道路上超车时,应尽量加大横向距离,必要时可越实线超车。
下列哪项属于吸气性呼吸困难
下列信号中属于同步机产生的是
在节理玫瑰图中,自半圆中心沿着半径方向引射的直线段长度的含义是指下列哪一项?()
以演示账套“静华公司”为基础资料。请为工资管理进行工资计算公式定义。公式名称:办公室在职人员出勤奖=基本工资×0.1应发合计=基本工资十全勤奖实发合计=应发合计一代扣所得税
(用户名:11;账套:131;操作日期:2010年1月31日)输入固定资产原始卡片。资产类别:01资产名称:现代轿车所在部门:销售部增加方式:直接购入开始使用日期:2009一01一01使用年限:10原值:1
根据《中外合资经营企业法》及其实施条例的规定,下列事项中,无须经合营企业出席董事会会议的全体董事一致通过的是()。
事实认识错误,又称构成要件错误;是指行为人在着手犯罪时预见或设想的事实与实际发生的事实不符合。根据上述定义,下列不属于事实认识错误的一项是()。
人是一种被限定了时空框架的有限生物。人活着,就是与别人共存于同一个地球村落,人的物质生活和精神生活都有赖于与他人互惠互存。只有自觉置身于人类,才能坚持对人类精神价值的信念;也只有社会,才是自我实现和个性发展的唯一场所。这段话的主旨是()。
What’sthisnewsmainlyabout?
最新回复
(
0
)