首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设窗体上有1个名称为Command1的命令按钮,并编写了下面的事件过程: Private Sub Command1_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
设窗体上有1个名称为Command1的命令按钮,并编写了下面的事件过程: Private Sub Command1_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
admin
2018-06-20
17
问题
设窗体上有1个名称为Command1的命令按钮,并编写了下面的事件过程:
Private Sub Command1_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
Print X,Y
End Sub
运行程序后,当用鼠标单击命令按钮时,则输出的是( )。
选项
A、单击鼠标时鼠标光标相对于命令按钮左上角的坐标
B、单击鼠标时鼠标光标相对于窗体左上角的坐标
C、单击鼠标时鼠标光标相对于屏幕左上角的坐标
D、命令按钮左上角的坐标
答案
A
解析
本题考查按钮控件的鼠标按下事件过程,在Command1_MouseDown事件过程中鼠标位置由参数X、Y确定,当鼠标移动到按钮上,单击鼠标,则触发MouseDown事件过程,并输出鼠标光标相对于按钮控件左上角的位置,故A选项叙述正确。本题选择A选项。
转载请注明原文地址:https://kaotiyun.com/show/NaGp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
设窗体上有1个水平滚动条,已经通过属性窗口把它的Max属性设置为1,Min属性设置为100。下面叙述中正确的是
在窗体上画一个名称为List1的列表框,然后编写如下程序:PrivateSubForm_Click0Fori=1To10Item=”Item”&i:Listl.Addltem
在窗体上画1个文本框,名称为Textl,然后编写如下程序:PrivateSubFormLoad()Open”C:\dat.txt”ForOutputAs#1Textl.Text=””
设有关键码序列(66,13,51,76,81,26,57,69,23),要按关键码值递增的次序排序,若采用快速排序法,并以第一个元素为划分的基准,那么第一趟划分后的结果为()。
在考生文件夹下有一个工程文件sjt3.vbp,相应的窗体文件为sjt3.frm。其功能是产生30个0~1000的随机整数,放入—个数组中,然后输出其中的最大值。程序运行后,单击命令按钮(名称为Commandl,标题为”输出最大值”,如图2-149所示),即
在考生文件夹下有一个工程文件sjt5.vbp,相应的窗体文件为sjt5.frm,此外还有一个名为datain.txt的文本文件,其内容如下:32437658281298573142536475869713243546576879805937程序运行后,
下列叙述中正确的是()。
以下关于文件的叙述中,错误的是()。
在数据库管理系统提供的数据语言中,负责数据模式定义的是
下列说法中错误的是
随机试题
功能收敛止血、同精止带、制酸止痛、收湿敛疮的药物是()(1992年第39题)
下列作品中,运用了倒叙手法的是()
在Word编辑的文档中插入页眉、页脚,要使奇、偶页页脚不同()。
A.清创,一期缝合B.清创,延期缝合C.清创后不予缝合D.清创及植皮E.无须清创
A.葡萄糖-6-磷酸酶B.异柠檬酸脱氢酶C.果糖二磷酸酶D.苹果酸脱氢酶E.己糖激酶
下列说法正确的是()。
某市为了提高“一网通办”速度、提升政务服务水平,提出了“让信息多跑网路,让群众少跑马路”的主张。对于这个主张,你怎么看?
唐卡是极富藏族文化特色的一种绘画形式,自吐蕃王朝兴起至今已有1300多年的历史,是雪域高原的文化瑰宝。它的题材除宗教外,还有历史和民俗内容,故又被称为了解西藏的百科全书。所以,想要了解西藏的历史,除了正襟危坐地阅读严谨但略显呆板的史书外,你还可以选择一种惬
简述金融期货市场的基本功能。
面向对象(47)强调对问题的调查而不是如何确定解决方案,面向对象(48)强调的是问题的逻辑解决方案,即系统怎样才能满足需求。
最新回复
(
0
)