首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是( )。
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是( )。
admin
2013-11-29
33
问题
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是( )。
选项
A、Private Sub P1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
Print X.Y
End Sub
B、Private Sub P1_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
Picture.Print X.Y
End Sub
C、Private Sub PI_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
P1.Print X,Y
End Sub
D、Private Sub Form—MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
PI.Print X,Y
End Sub
答案
C
解析
当鼠标在图片框Pl中移动时,就会触发Pl的鼠标移动事件,即P1_MouseMove事件,故排除B选项;鼠标和图片框P1中移动时,立即在图片框中显示鼠标的位置坐标,说明是在图片框中输出数据,所以用Pl的Print语句实现。故C选项正确。
转载请注明原文地址:https://jikaoti.com/ti/uI60FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
阅读程序:FunctionF(aAsInteger)b=0Staticcb=b+1c=c+1f=a+b+cE
下列程序段的执行结果为______。I=4a=5DoI=I+1a=a+2LoopUntilI>=7Print“I=”;IPrint“A=”;a
在窗体画一个命令按钮,然后编写如下过程:Functionfun(ByValnumAsLong)AsLoneDimkAsLongk=1num=Abs(num)Do
已知变量x,y为整数型,且x=4,y=12,s为字符串型,且s=“a”,lblok为标签控件,下列赋值语句合法的是______。
在算法正确的前提下,评价一个算法的两个标准是【】。
在代码中定义了一个子过程:SubP(a,B)...EndSub下面______调用该过程的格式是正确的。...EndSub下面______调用该过程的格式是正确的。
在程序运行期间,如果拖动滚动条上的滚动眶,则触发的滚动条事件是______。
以下叙述中错误的是
实体是信息世界中广泛使用的一个术语,它用于表示()
随机试题
大秦艽汤的配伍特点
八正散的功用是
高速离心机的转速和最大相对离心力分别为
一般认为在口服剂型中,药物吸收的快慢顺序大致是
卵巢囊肿患者手术前留置导尿管的目的是()。
商业银行应当加强对理财产品宣传销售文本制作和发放的管理,宣传销售文本应当由商业银行()统一管理和授权。
企业对境外经营的财务报表进行折算时,下列项目应采用资产负债表日的即期汇率进行折算的有()。
牙周病治疗的总体目标是什么?
In1960—1961,Chadhadagoodharvestofcottonbecause______.Welearnfromthepassagethatthedateofsowingcottonisusua
Averylargenumberofpeople【B1】______whenquiteyoungtoaddanythingtoalimitedstockofjudgments.Afteracertainage,sa
最新回复
(
0
)