首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上已有1个名称为Picture1的图片框,要求实现下面2个功能之一: (1)在窗体上移动鼠标时,立即将Picture1显示在鼠标位置 (2)在窗体上单击鼠标时,立即将Picture1显示在鼠标位置 下面不能实现上述任何功能的事件过程是
窗体上已有1个名称为Picture1的图片框,要求实现下面2个功能之一: (1)在窗体上移动鼠标时,立即将Picture1显示在鼠标位置 (2)在窗体上单击鼠标时,立即将Picture1显示在鼠标位置 下面不能实现上述任何功能的事件过程是
admin
2019-03-14
26
问题
窗体上已有1个名称为Picture1的图片框,要求实现下面2个功能之一:
(1)在窗体上移动鼠标时,立即将Picture1显示在鼠标位置
(2)在窗体上单击鼠标时,立即将Picture1显示在鼠标位置
下面不能实现上述任何功能的事件过程是
选项
A、Private Sub Form_MouseDown(Button As Integer, Shift As Integer,
X As Single, Y As Single)
Picture1.Move X, Y
End Sub
B、Private Sub Form_MouseUp(Button As Integer, Shift As Integer,
X As Single, Y As Single)
Picture1.Move X, Y
End Sub
C、 Private Sub Form_MouseDown(Button As Integer, Shift As Integer,
X As Single, Y As Single)
Picture1.CurrentX = X
Picture1.CurrentY = Y
End Sub
D、Private Sub Form_MouseMove(Button As Integer, Shift As Integer,
X As Single, Y As Single)
Picture1.Move X, Y
End Sub
答案
C
解析
Picture的CurrentX和CurrentY属性,是将光标定位在 x与y 的位置,并没有把Picture显示在鼠标位置,所以选C)。
转载请注明原文地址:https://kaotiyun.com/show/xKFp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
要使得文件列表框File1中只显示文件扩展名为jpg的图片文件,则下列正确的语句是
下列叙述中正确的是
关于随机文件,以下叙述中错误的是( )。
以下叙述中错误的是( )。
有三个关系R、S和T如下:则由关系R和S得到关系T的操作是( )。
某人编写了如下程序,用来求10个整数(整数从键盘输入)中的最大值:PrivateSubCommandl——Click()Dima(10)AsInteger,maxAsIntegerFork=1To10a(k)=InputBox(“
窗体上有1个名称为Commandl的命令按钮,事件过程如下:PrivateSubCommandl_Click()DimhumAsInteger,xAsIntegernum:Val(InputBox(“请输入一个正整数”))Selec
窗体上有一个名称为Timer1的计时器控件,一个名称为Shapel的形状控件,其Shape属性值为3(Circle)。编写程序如下:PrivateSubFormLoad()Private.SubTimer1Timer()Shapel.Top=
以下关于DoUntil…Loop循环的说法正确的是()。
以下关于图片框控件的说法中,错误的是
随机试题
氧疗过程中需评估哪些状况,以判断用氧效果:
安静时,产热最多的器官是()。
下列说法中属于法的普遍性的含义的有()。
()是商业银行监管的首要环节,是保障银行机构稳健运行和金融体系安全的重要基础。
检查到的有不合格产品的建材企业占全国监督企业总数的百分比为:()检查到的有不合格产品企业的个数是:()
商品的价值
请使用VC6或使用【答题】菜单打开考生文件夹proj2下的工程proj2,其中有整数栈类IntList、顺序栈类SeqList和链接栈类LinkList的定义。请在程序中的横线处填写适当的代码并删除横线,以实现上述类定义。此程序的正确输出结果应为:
A、Itwascreatedmainlyforscientificresearch.B、Itworksbetterinfineweatherconditions.C、Itmustbelocatedonatleast
TopicALetterofConsolationForthispart,youareallowed30minutestowritealettertoconsoleyourfriendwhosefamilyha
在21世纪初,我国出现了免费的地铁报(subwaynewspaper)。北京、上海、广州等大城市都有自己的地铁报。这些报纸通常在上班高峰期时在地铁站里发放。越来越多的人因为这些地铁报而重拾文字阅读的习惯。地铁报之所以受欢迎是因为它们非常了解受众读者(ta
最新回复
(
0
)