首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上已有1个名称为Picturel的图片框,要求实现下面2个功能之一:(1)在窗体上移动鼠标时,立即将Picturel显示在鼠标位置(2)在窗体上单击鼠标时,立即将Picturel显示在鼠标位置下面不能实现上述任何功能的事件过程是
窗体上已有1个名称为Picturel的图片框,要求实现下面2个功能之一:(1)在窗体上移动鼠标时,立即将Picturel显示在鼠标位置(2)在窗体上单击鼠标时,立即将Picturel显示在鼠标位置下面不能实现上述任何功能的事件过程是
admin
2020-01-02
39
问题
窗体上已有1个名称为Picturel的图片框,要求实现下面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)
Picture 1.CurrentX=X:Picture 1.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方法用于移动窗体或控件,其语法:对象名.Move Left[Top】[,Width][Height]。其中,Left和Top参数分别表示对象左侧的水平坐标和上侧的垂直坐标,Width和Height参数分别表示对象新的宽度和高度。
转载请注明原文地址:https://kaotiyun.com/show/gETp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
窗体上有两个名称分别为Text1、Text2的文本框,一个名称为Command1的命令按钮。设有如下的类型声明:TypePersonnameAsString*8majorAsString*20EndType
下列操作中不能向工程中添加窗体的是()。
设一棵满二叉树共有15个结点,则在该满二叉树中的叶子结点数为()。
在窗体上画一个命令按钮,然后编写如下代码:PfivateSubCommand1_Click()DimMaxSize,NextChar,MyCharOpen"d:\temp\female.txt"ForInputAs
在关系中凡能惟一标识元组的最小属性集称为该表的键或码。二维表中可能有若干个键,它们称为该表的()。
下面哪个属性不是框架控件的属性()。
有如下语句序列:Dima,bAsIntegerPrintaPrintb执行以上语句序列,下列叙述中错误的是
以下关于多重窗体程序的叙述中,错误的是
设二叉树中共有15个结点,其中的结点值互不相同。如果该二叉树的前序序列与中序序列相同,则该二叉树的深度为()。
在关系数据库中,用来表示实体间联系的是
随机试题
能在硝酸溶液中存在的是()。
下列关于领导和管理的关系,表述正确的是【】
机关文书部门收到下级机关上报的需要办理的公文,应当进行()
患者女,30岁。妊娠2个月,有怕热、心悸、多食等,诊断为妊娠合并甲亢,该患者宜首选
决定直肠癌能否保留肛门的因素包括
患者,男,消瘦,查体左侧腹部触到一实体样包块,有弹性,随呼吸上下移动,患者诉有恶心感,该包块是
在一项研究中,研究者先给6~10个月大的婴儿播放视频资料,视频中一些玩具娃娃在爬楼梯,另一些玩具娃娃会走上前帮助他们、看着他们或者推倒他们,然后让婴儿选择视频中的玩具娃娃。实验结果显示几乎每个婴儿都选择了帮助别人的玩具娃娃。因此研究者认为婴儿在他们会说话之
构成中华文明的各支源流各有其成长、壮大、迁徙、融合的历史,把各支主要源流的历史给予相对充分的阐发,更能表现中华民族万流人海的历史______。
判断一家公司是否具有成长性,这家公司的产品或服务有没有市场______至关重要。有些公司可能有几年时间保持了较快的增长,但是如果所从事的行业空间有限,就注定了高增长只是______。填入画横线部分最恰当的一项是()。
A、 B、 C、 D、 C
最新回复
(
0
)