[单项选择题] 要求当鼠标在图片框Picture1中移动时,立即在图片中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是( )。
2021-07-14
[单项选择题] 要求当鼠标在图片框Picture1中移动时,立即在图片中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是( )。
A. Private Sub Picture1_MouseMove(Button As Integer,Shift As integer,XAs Single,Y As Single)
Picture1.Print X,Y
EndSub
B. Private Sub Picture1_MouseMove(Button As Integer,Shift As Integer,XAs Single,Y As Single)
Print X,Y
EndSub
C. Private Sub Picture1_MouseDown(Button As Integer,Shift As Integer,XAs Single,Y As Single)
Picture.Print X,Y
End Sub
D. Private Sub Form_MouseMove(Button As Integer Shift As Integer,XAs Single,Y As Single)
Picture1.Print X,Y
End Sub
正确答案:A
参考解析:在图片框中移动鼠标触发的事件是Picture1_MouseMove事件,在事件中控制在图片框中输出坐标。
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
