首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是( )。
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是( )。
admin
2020-07-22
4
问题
要求当鼠标在图片框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 P1_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)
P1.Print X,Y
End Sub
答案
C
解析
当鼠标在图片框P1中移动时,就会触发P1的鼠标移动事件,即P1_MouseMove事件,故排除B选项;鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标,说明是在图片框上输出数据,所以用P1的Print语句实现。故C选项正确。
转载请注明原文地址:https://kaotiyun.com/show/AcHp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
数据模型的三个要素是()。
窗体上有1个名称为Text1的文本框;1个名称为Timerl的计时器控件,其Interval属性值为5000,Enabled属性值是True。Timer1的事件过程如下:PrivateSubTimerl_Timer()StaticflagAs
窗体上有名称为Command1的命令按钮和名称为Text1的文本框PrivateSubCommand1_Click()Text1.Text="程序设计"TeXtl.SetFocusEndSubPriv
假定有如下的程序段:DimintVarAsIntegerintvar=TruePrintintVar则输出结果是
请根据以下各小题的要求设计VisualBasic应用程序(包括界面和代码)。(1)在名称为Form1的窗体上画一个名称为Combol的组合框,其宽度为1200,其类型如图3—188所示(即简单组合框)。要求如下:①请按图中所示,通过属
一个工作人员可使用多台计算机,而一台计算机被多个人使用,则实体工作人员与实体计算机之间的联系是
数据流图中带有箭头的线段表示的是()。
设循环队列的存储空间为Q(1:35),初始状态为front=rear=35。现经过一系列入队与退队运算后,front=15,rear=15,则循环队列中的元素个数为
数据处理的最小单位是
随机试题
Thestrong,light-weightbamboomakesanexcellentreinforcementforconcrete.
解剖上,关于正常左心室与右心室的主要区别,正确的是
根据下面材料。回答下列题目:投资者预测来年的市场收益率为12%,国库券收益率为4%。CFI公司股票的贝塔值为0.50,在外流通股的市价总值为1亿美元。假定该股票被公正地定价,投资者估计其期望收益率为( )。
Beforedoingawritingtask,theteacherelicitsstudents’ideasbyaskingthemtolistasmanywordsorphrasesthatcomeinto
我国最大的内陆咸水湖是()。
人工智能是指由人工制造出来的系统所表现出来的智能。人工智能的核心问题包括推理、知识、规划、学习、交流、感知、移动和操作物体的能力等。下列论述中所描述的各项技术突破,无关人工智能的是:
毛泽东从边区教育实际出发,提出“不但要有集中的正规的小学、中学,而且要有分散的不正规的村学、读报组和识字组。不但要有新式学校,而且要利用旧的村塾加以改造。”这句话体现了抗日战争时期中国共产党的教育方针政策中的
在窗体上画一个组合框,一个命令按钮和一个文本框,其名称分别为Combo1,Command1和Text1,然后编写如下事件过程:PrivateSubForm_Load() Combo1.AddItem"AAAAA" Combo1.AddI
•Lookatthestatementsandthematerialsaboutmarketingdisastersbelow.•Whichstory(A,B,CorD).doeseachstatement1—7
A、Itisconductedinclassandtheotherteachersprovidefeedback.B、Itisdoneathomewithstudents.C、Itispreparedbythe
最新回复
(
0
)