首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。 下面能正确实现上述功能的事件过程是
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。 下面能正确实现上述功能的事件过程是
admin
2020-04-18
28
问题
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。 下面能正确实现上述功能的事件过程是
选项
A、Private Sub P 1-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 P 1 jVIouseMove(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
解析
在图片框中移动鼠标触发的事件是Pl MouseMove事件,在事件中控制在图片框中输出坐标。
转载请注明原文地址:https://jikaoti.com/ti/Cox0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在窗体上画一个Timer1计时器控件和一个Shape1形状控件,并编写如下程序PrivateSubForm_Load()Timer1.Interval=1000Timer1.Enabled=TrueEndSubPri
下面程序运行时,若输入"VisualBasicProgramming",则在窗体上输出的是( )。PrivateSubCommand1_Click() Dimcount(25)AsInteger,chAsString ch=U
下列有关文件的叙述中,正确的是()。
(1)在名称为Forml的窗体中面一个名称为L1的标签,其标题为“0”,BordeiStyle属性为1;再添加一个名称为Timerl的计时器。请设置适当的控件属性,并编写适当的事件过程,使得在运行时,每隔一秒钟标签中的数字加1。如图3一170所示的是程序刚
下面不是键盘事件的是( )。
以下变量名中合法的是()。
某二叉树的前序序列为ABCD,中序序列为DCBA,则后序序列为
在窗体(名称为Form1)上画一个名称为Text1的文本框和一个名称为Command1的命令按钮,然后编写一个事件过程。程序运行后,如果在文本本框中输入一个字符,则把命令按钮的标题设置为“计算机等级考试”。以下能实现上述操作的时间过程是
随机试题
简述著作权客体的排除领域。
垂体切除的动物不会出现
有关苯海索的叙述,下列叙述错误的是:
A、西立伐他汀B、地西泮C、卡马西平D、洛伐他汀E、吉非贝齐(吉非罗齐)对癫癎精神运动性发作疗效最好
患者,女,36岁,急性淋巴细胞白血病。医嘱:浓缩红细胞和血小板输注。在首先输注浓缩红细胞过程中患者出现全身皮肤瘙痒伴颈部、前胸出现尊麻疹。首先考虑该患者发生了
启动程序或窗口,只要()对象的图表即可。
下列关于高利转贷罪的表述中,错误的是()。
套利理论与资本资产定价模型的相同点在于都是资产的收益率如何受统一风险因素影响的理论,不同点在于资本资产定价模型假设市场均衡,但套利理论假设市场是不完善的。()
回避制度是我国传统任官制度的重要特点,此制始于东汉,后为历代沿袭,至清已形成一种非常重要的人事管理制度,其目的是防止官员因某些关系徇情营私。清代回避制度主要有籍贯回避、亲属回避、师生回避。清代任官的回避制度,规则繁密,超过往代,在嘉道之前执行尤为严格,在防
在一台主机上用浏览器无法访问到域名为www.sun.com的网站,并且在这台主机上执行tracert命令时有如下信息Tracingroutetowww.sun.com[72.5124.61]overamaximunof30
最新回复
(
0
)