首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上已有1个名称为Picturel的图片框,要求实现下面2个功能之一: (1)在窗体上移动鼠标时,立即将Picturel显示在鼠标位置(2)在窗体上单击鼠标时,立即将Picturel显示在鼠标位置下面不能实现上述任何功能的事件过程是
窗体上已有1个名称为Picturel的图片框,要求实现下面2个功能之一: (1)在窗体上移动鼠标时,立即将Picturel显示在鼠标位置(2)在窗体上单击鼠标时,立即将Picturel显示在鼠标位置下面不能实现上述任何功能的事件过程是
admin
2013-10-16
25
问题
窗体上已有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://jikaoti.com/ti/jO60FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
单元测试是基础性测试,下列各项中,______不是它通常采用的方法。
软件开发的结构化设计(SD)方法中,全面指导模块划分的最重要原则是______。
软件设计模块化的目的是______。
下面关于VisualBasic6.0工具栏的说法不正确的是______。
编写如下事件过程:PrivateSubFOrm_MouseDown(ButtonAsInteger,ShiftAsInteger,XAsSingle,YAsSinglE
以下叙述中错误的是______。
在名为Form1的窗体上绘制一个图片框(名称为Pic1)、一个垂直滚动条(名称为VS1)和一个命令按钮(名称为Cmd1,标题为“设置属性”),通过属性窗口把考生目录下的图像文件Pic1.jpg放到图片框中,图片框的宽度与图形的宽度相同,图片框的高度任意。
在VisualBasic中,表达式3*2\5Mod3的值是()。
设某个程序中要用到一个二维数组,要求数组名为A,类型为字符串类型,第一维下标从1到5,第二维下标从-2到6,则相应的数组声明语句为【】
设有变量声明为“DimaDateAsDate”,则为变量aDZe正确赋值的表达方式是()。
随机试题
机动车在通过山区道路弯道时,要做到“减速、鸣喇叭、靠右行”。
律师的权利有哪些?
在口咽部MR扫描中,下列哪一项是错误的
左心衰竭发生呼吸困难的主要机制是
怀疑舍格伦综合征时,一般可进行哪一腺体的活体组织病理检查黏液表皮样癌最常发生在
器质性心脏杂音的特点最不可能有的是
环境影响经济评价的方法中,用于评估森林公园、风景名胜区、旅游胜地的环境价值的常用方法是()。
我国客轮停靠在日本一港口时,一日本人在客轮上窃取了我国一公民的财物,价值500元。根据()原则,我国可以对本案立案管辖。
小王开车上班需经过4个交通路口,假设经过每个路口遇到红灯的概率分别为0.1、0.2、0.25、0.4,则他上班经过4个路口至少有一处遇到绿灯的概率是:
ここで写真を撮っ()いいですか。
最新回复
(
0
)