首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上已有1个名称为Picture1的图片框,要求实现下面2个功能之一: (1)在窗体上移动鼠标时,立即将Picturel显示在鼠标位置(2)在窗体上单击鼠标时,立即将Picturel显示在鼠标位置下面不能实现上述任何功能的事件过程是
窗体上已有1个名称为Picture1的图片框,要求实现下面2个功能之一: (1)在窗体上移动鼠标时,立即将Picturel显示在鼠标位置(2)在窗体上单击鼠标时,立即将Picturel显示在鼠标位置下面不能实现上述任何功能的事件过程是
admin
2018-10-15
15
问题
窗体上已有1个名称为Picture1的图片框,要求实现下面2个功能之一: (1)在窗体上移动鼠标时,立即将Picturel显示在鼠标位置(2)在窗体上单击鼠标时,立即将Picturel显示在鼠标位置下面不能实现上述任何功能的事件过程是
选项
A、Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
Picturel.Move X,Y
End Sub
B、Private Sub Form_MouseUp(Button As Integer,Shift As Integer,X As Single,Y As Single)
Picturel.Move X,Y
End Sub
C、Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
Picturel.CurrentX=X:Picturel.CurrentY=Y
End Sub
D、Private Sub Form_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
Picturel.Move X,Y
End Sub
答案
C
解析
图片框的CurrentX和CurrentY属性会在程序运行时,返回或设置下一次打印或绘图位置的水平坐标和垂直坐标。Move方法用于移动窗体或控件,其语法:对象名.MoveLeft[,Top][,Width][,Height]。其中,Left和Top参数分别表示对象左侧的水平坐标和上侧的垂直坐标,Width和Height参数分别表示对象新的宽度和高度。
转载请注明原文地址:https://jikaoti.com/ti/JNm0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
(1)在考生文件夹中有一个工程文件sjt3.vbp。运行程序时,先向文本框Text1中输人一个不超过10的正整数,然后选择“N的阶乘”或“(N+2)的阶乘”单选钮,即可进行计算,计算结果在文本框Text2中显示,如图所示。在给出的窗体文件中已经添加了全部控
有如下过程:Subproc()DimchAsStringOpen"file1.txt"ForInputAs#1Open"file1_bak.txt"ForOutputAs#2DoWhi
设有如下通用过程:PublicFunctionf(xAsInteger) DimyAsInteger x=20 y=2 f=x*yEndFunction在窗体上画一个命令按钮,其名称为Command1,然后编写如下
在窗体上画一个名称为Command1的命令按钮,一个名称为Label1的标签,然后编写如下事件过程:PrivateSubCommand1_Click() s=0 Fori=1To15 x=2*i-1 IfxMod
若窗体上有一个名为Command1的命令按钮,并有下面的程序:PrivateSubCommand1_Click() Dimarr(5)AsInteger Fork=1To5 arr(k)=k Nextk prog
以下不能用Print方法输出数据的对象或窗口是
在VisualBasic中,不能关闭的窗口是
下面可以识别功能键F1的事件是
下面能够将某个变量声明为局部变量的是
随机试题
A、神农氏B、张仲景C、张呆D、孙思邈E、张石顽医疗不分贫富贵贱,要一视同仁,即使患者为娼妓也要视为良家妇女,不可不尊重。倡导者是我国明代著名医学家
结构中有芳伯氨基或潜在芳伯氨基的药物,重氮化反应适宜的酸度条件是
罗厚森是一家著名大型物流公司的职员,年纪不大的他已经在事业上小有成就,是同学、朋友圈中令人羡慕的“先富阶层”。但是为了以后的生活理想,特想作一理财规划,经过初步沟通面谈后,你获得了以下家庭、职业与财务信息:一、案例成员二、月度收支状况收入方面:1
我国企业债券利率不得高于银行同期居民储蓄定期存款利率的( )。
下列关于个人独资企业法律特征的表述中,正确的是()。
伤痛再见尽享快乐——“云南白药膏《伤痛再见篇》”在南斯拉犬名曲《朋友再见》的旋律中,抖空竹的老人一出手,就将写着“痛”的空竹抖出画面。青春跋扈
以下关于工作岗位分析的说法正确的有()。
张大干在加州的故居和左邻右舍希腊式或罗马式的巍峨广厦相较,的确有似贫者之居,未免______。从这一排瓦顶的平房右侧角门穿过,自落地的玻璃窗向室内窥视,当系画师的画室兼客厅。长长的画案蒙罩着厚厚尘埃,躺榻上倚枕斜陈,茗具横置,一片______气氛。依次填人
阅读以下文字。完成问题。科举制度的取消对中国现代化造成的困难在于,原有的形成社会精英的方式由此而发生突然的断裂。正如一些研究者指出的,曾经由科举制度给社会提供的内聚力量,在其后几十年中一直都没有恢复过来。科举制度的取消既然产生如此多的消极后果,这
D
最新回复
(
0
)