首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上已有1个名称为Picturel的图片框,要求实现下面2个功能之一: (1)在窗体上移动鼠标时,立即将Picturel显示在鼠标位置(2)在窗体上单击鼠标时,立即将Picturel显示在鼠标位置下面不能实现上述任何功能的事件过程是
窗体上已有1个名称为Picturel的图片框,要求实现下面2个功能之一: (1)在窗体上移动鼠标时,立即将Picturel显示在鼠标位置(2)在窗体上单击鼠标时,立即将Picturel显示在鼠标位置下面不能实现上述任何功能的事件过程是
admin
2015-12-09
26
问题
窗体上已有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)
Picturel.CurrentX=X:Picturel.CurrentY=Y
End Sub
D、Privtate 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/EhJ0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在关系模型中,把数据看成一个二维表,每一个二维表称为一个______。
对建立良好的程序设计风格,下列描述正确的是()。
设A="12345678",则表达式Val(Left(A,4)+Mid(A,4,2))的值为______。
在运行程序的过程中,当执行“复制”(mnuEditCopy)命令时,使“粘贴”(munEditPaste)命令变为可用,则应做如下处理()。
按照“先进先出”组织数据的数据结构是()。
下面叙述中不正确的是______。
下列不属于VisualBasic特点的是()。
有三个关系R、S和T如下:则由关系R和S得到关系T的操作是
常见的软件开发方法有结构化方法和面向对象方法。对某应用系统经过需求分析建立数据流图(DFD),则应采用【3】方法。
随机试题
二手车成交不收取任何费用。()
下列对IgA肾病诊断最可靠的依据是
A、格列吡嗪B、氯磺丙脲C、阿卡波糖D、苯乙双胍E、罗格列酮抑制α葡萄糖苷酶的口服降血糖药物是
如图所示的外伸梁,抗弯刚度为EI,所受荷载见图,则C端的挠度和转角为( )。
某企业2005年12月份发生如下经济业务(均不考虑相关税费)。要求:根据经济业务编制会计分录。12月31日,用现金支付工人工资10000元。
领导班子对职责范围内的党风廉政建设负()责任。
孩子之间升学竞争之激烈,同目前许多企事业单位内职工之间竞争依然极不发达、吃“大锅饭”依然十分严重的状况,形成了强烈的反差。细想一下,前者竞争过于激烈,后者竞争极不发达事出一源:争得大学文凭,正是为了毕业后捧上最保险、最有分量的铁饭碗。在片面追求升学率怪圈阴
已知x2+5x+2=0,则x2+4/x2的值为()。
Ifyouwanttowatchdancing,youcancall______.YoucanseethewholeofChinesehistoryat______inAprilinAnhuiMuseum.
ThewindsthathowlacrosstheGreatPlainnotonlyblowawayvaluabletopsoil,therebyreducingthepotentialcropyieldofat
最新回复
(
0
)