首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下事件过程: Private Sub Form_MouseMove(Button As Integer,Shift As Interger,X As Single,Y As Single) If(Button And 3)=3 Then Print“
编写如下事件过程: Private Sub Form_MouseMove(Button As Integer,Shift As Interger,X As Single,Y As Single) If(Button And 3)=3 Then Print“
admin
2020-07-22
15
问题
编写如下事件过程:
Private Sub Form_MouseMove(Button As Integer,Shift As Interger,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/3DS0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
设在窗体上有一个名称为Check1的复选框数组,并有以下事件过程:PrivateSubCheckl—Click(IndexAsInteger)EndSub则下面叙述中错误的是
下面关于直线控件的叙述中正确的是
有下面程序代码:PrivateSubCommand1_Click()DimaAsStringa="CONPUTER"n=search(a,"T")PrintIIf(n=0,"未找到",n)EndSubPrivateFuncti
数据库设计中反映用户对数据要求的模式是
软件测试的目的是
下面不属于软件测试实施步骤的是
对长度为n的线性表排序,在最坏情况下,比较次数不是n(n-1)/2的排序方法是( )。
有三个关系R、S和T如下:则由关系R和S得到关系T的操作是()。
设已经在窗体上添加了一个通用对话框控件CommonDialogl,以下语句正确的是()。
在一棵二叉树上,第5层的结点数最多是()。
随机试题
取样技术主要应用在哪些方面?
以下哪项是肾炎性肾病的特点
用于区别甲型和乙型强心苷的反应是
某地农村数十人在进食家庭自制面酱后1天后出现头晕、无力、视物模糊、眼睑下垂、复视,部分病人出现咀嚼无力、吞咽困难,你认为最可能是
为提高脂质体的靶向性而加以修饰的脂质体超声波分散法制备的脂质体
按照《招标投标法》的规定,不允许招标人在定标过程中( )。
U盘写保护后,可对其中的文件进行()操作。
下列说法错误的是()。
1 Therearesuperstitionsattachedtonumbers;eventhoseancientGreeksbelievedthatallnumbersandtheirmultipleshadsome
Whatdoesthemanthinkisadisadvantageofdistancelearning?
最新回复
(
0
)