首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是
admin
2017-11-23
24
问题
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是
选项
A、rivate 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 MouseMove事件,在事件中控制在图片框中输出坐标。
转载请注明原文地址:https://jikaoti.com/ti/nty0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
以下程序的功能是:从键盘上输入若干个数字,当输入负数时结束输入,统计出若干数字的平均值,输出结果。请填空。PrivateSubForm_click()Dimx,yAsSingleDimzAsIntegerx=InputBox("E
下列程序执行后,在Ctrl和Alt这两个键都被按下的同时,再在文本框中输入“a”,输出结果为PrirateSubText1_KeyDown(KeyCodeAsInteger,ShiftAsInteger)IfSh
以下声明语句中错误的是()。
当程序运行时,在窗体上单击鼠标,以下______事件是窗体不会接收到的。
使用()方法不能让控件获得焦点。
无论什么控件,都有一个共同的属性,这个属性是______。
能够接受Print方法的对象是()。(1)窗体(2)标签(3)标题栏(4)立即窗口(5)图片框(6)状态栏(7)打印机(8)代码窗口
当用户按下键盘上的某个键时,将会触发拥有输入焦点的控件的______事件。
下面程序是由鼠标事件在窗体上画图,如果按下鼠标可以画图,双击窗体则可以清除所画图形。补充完整下面的程序。首先在窗体层定义如下变量:DimPaintStartAsBoolean编写如下事件过程:PrivateSubForm_Load()Dr
下列说法中,不属于数据模型所描述的内容的是()。
随机试题
男性,40岁,发现右颊黏膜白色斑块1个月,临床检查除右颊孤立白色斑块外未发现其他病损。你认为下列哪项提供的信息丕星以作为本病例的发病因素
抗高血压的药是抗癫痫的药是
秦律师在一起经济案件中,担任一审原告的诉讼代理人。该案上诉后,秦律师又担任原一审被告的诉讼代理人,由于需要追加第三人,二审法院将此案发回重审,秦律师又担任第三人的诉讼代理人。对秦律师的行为,应该给予什么处分?()
混凝土坝,坝段分缝分块型式可分为()。
某办公楼工程,建筑面积35000m2,地下2层,地上15层,框架筒体结构,外装修为单元式玻璃幕墙和局部干挂石材。场区自然地面标高为-2.00m,基础底标高为-6.90m,地下水位标高-7.50m,基础范围内土质为粉质黏土层。在建筑物北侧,距外墙轴线2.5m
采取抵押担保方式的,贷前调查应调查的内容不包括()。
某公司存货周转期为160天,应收账款周转期为90天,应付账款周转期为100天,则该公司现金周转期为()天。
为向A公司支付购买机器设备的货款,B公司向自己开户的C银行申请开具银行承兑汇票。C银行审核同意后,B公司依约存入C银行300万元保证金,并签发了以自己为出票人、A公司为收款人、C银行为承兑人、金额为1000万元、见票后3个月付款的银行承兑汇票,C银行在该汇
Weoftentendtoassociatesmilingastheresultofapositiveeventormood.Butresearchdemonstratesthattheactofsmiling,
Thatboywithapairofspectacleswithgold______haswonseveralscholarshipsinhisschool.
最新回复
(
0
)